Re: Pageframe Memory Variable by Stefan
Stefan
Mon Nov 29 01:48:40 CST 2004
Hi,
Re Invisible page not refreshed
>I tried with 'Active page() this refresh(). It did not work.
> As, this will again give the active page memvar.
> I do not know how to use UIenable method.
Here I did not understand exactly what you tried and how it did
not work.
Invisible pages are not refreshed by design. But the page.Activate()
event takes place when it gets visible, so you can write a line in each:
This.Refresh()
The .UIEnable() event of any control on your page also runs when the
parent page gets visible, so you can do the same there for each
control separately:
LParameters lEnabled
If lEnabled
This.Refresh()
Endif
All this has probably nothing to do with your original problem.
I'd suggest to make your memvar handling work on form level,
e.g. build a separate simplified test form, through all pageframes
away, use the Name clause of the Scatter / Gather commands
(with a form property for each alias yiou want to handle) as discussed
earlier.
My guess is you'd find "Table Buffering" easier to handle than
the memvar approach, BTW.
hth
-Stefan
"Bankim Desai" <BankimDesai@discussions.microsoft.com> schrieb
>I tried with 'Active page() this refresh(). It did not work.
> As, this will again give the active page memvar.
>
> I do not know how to use UIenable method.
>
>
>
> "Stefan Wuebbe" wrote:
>
>> > One thing i have noticed is if i click on 1st page (default) every memvar on
>> > on the 1st page is ok. But on 2&3 not evaluated. If i click on page2 page 2
>> > memvar will show the values & 3 will not be evaluated. if i click on 3 every
>> > data will be evaluated.
>> >
>> > Is there something wrong with the refresh.
>>
>> That's by design - invisible pages will not be included by a
>> ParentContainer.Refresh() to increase performance.
>> You can either have a line in yourPage.Activate():
>> This.Refresh()
>> or use the UIEnable() event of your control/classes.
>>
>>
>> hth
>> -Stefan
>>