Fred
Sun Aug 03 12:42:16 CDT 2003
Why not use the .SetAll() method of your container (or Page) to make a mass
change like that?
--
Fred
Microsoft Visual FoxPro MVP
Please respond only to the newsgroups so that all may benefit.
Bruce wrote:
> Nevermind...found my own mistake:
> for each lccmdbutton in thisform.cntbuttongroup.objects
> lccmdbutton.enabled = .f.
> endfor
>
> -Bruce
>
>> -----Original Message-----
>> Eric,
>> Can I use the FOR EACH with a container? I'm trying to
>> disable a bunch of buttons at one time.
>> This code didn't work...but maybe I'm missing something:
>> for each lcmdbutton in thisform.cntbuttongroup
>> lcmdbutton.enabled = .f.
>> endfor
>>
>> TIA
>> -Bruce
>>
>>
>>> -----Original Message-----
>>> Hi,
>>>
>>> How about using the pagecount property?
>>>
>>> Perhaps, you could have:-
>>>
>>> local lccmd, i
>>> for i = 1 to this.pagecount
>>> lccmd = "this.page"+alltrim(str(i))+".refresh
>>> &lccmd
>>> endfor
>>>
>>> I've not tried this out but think it might work for you.
>>> Pauline
>>>> -----Original Message-----
>>>> Is there a way to programmtically call the refresh method
>>>> of each page of a page frame?
>>>> What I don't want to do:
>>>> this.page1.refresh
>>>> this.page2.refresh
>>>> this.page3.refresh
>>>> ....
>>>>
>>>> Besides, I might want to add pages and I don't want to
>>>> have to worry about the code.
>>>>
>>>> TIA
>>>> -Bruce
>>>> .
>>>>
>>> .
>>>
>> .
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003