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

call refresh method on page frame?? by Pauline

Pauline
Wed Jul 30 17:28:40 CDT 2003

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
>.
>

Re: call refresh method on page frame?? by Eric

Eric
Wed Jul 30 17:34:51 CDT 2003

Hello, Pauline!
You wrote on Wed, 30 Jul 2003 15:28:40 -0700:

PP> local lccmd, i
PP> for i = 1 to this.pagecount
PP> lccmd = "this.page"+alltrim(str(i))+".refresh
PP> &lccmd
PP> endfor

A more OOP-approach would be:
FOR EACH loPage IN thisform.pageframe.pages
loPage.refresh
ENDFOR
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: call refresh method on page frame?? by sen

sen
Wed Jul 30 22:46:52 CDT 2003


Bruce,
I had bad experience with This.Refresh() in Activate
Method, why not put it in Click Method at each page's

Sen

>-----Original Message-----
>Bruce,
>Usually you just add This.Refresh() to each page's
Activate method. If you are adding pages on the fly, this
is a bit more difficult unless you are using VFP 8.0,
where you can specify the default class for the pages.
>
>Rick
>
>"bruce" <weboutsourceinc@hotmail.com> wrote in message
news:050801c356e3$55642fe0$a401280a@phx.gbl...
>> 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
>.
>

call refresh method on page frame?? by Bruce

Bruce
Thu Jul 31 12:10:17 CDT 2003

Thanks all!
I'm using the FOR EACH method...and it works great.

-Bruce


>-----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
>.
>

call refresh method on page frame?? by Bruce

Bruce
Thu Jul 31 12:54:19 CDT 2003

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
>>.
>>
>.
>

call refresh method on page frame?? by Bruce

Bruce
Thu Jul 31 13:09:26 CDT 2003

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
>>>.
>>>
>>.
>>
>.
>

Re: call refresh method on page frame?? by Fred

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