Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed refresh
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01014583
Message ID:
01014598
Views:
18
This message has been marked as the solution to the initial question of the thread.
Don,

The first thing I look at when I have this type of problem is how many times is the refresh method being called for that page. You may have a control that is refreshing multiple times.

An easy way to check this is to put a textbox on the form. Set the value to 0 then in the refresh method add the following code:
THIS.Value = THIS.Value + 1
If the value displayed is more than 1, then you need to find what is causing the form to refresh more than once.

Kurt
>I have a form that contains a pageframe with a large number of controls on each page. Page 3 of the pageframe contains 96 textboxes which are subclassed to present computed data. The refresh method of the custom textbox contains the following code:
>
>
>
>var1 = "day1." + alltrim(this.Name)
>var2 = "day2." + alltrim(this.name)
>v3 = val(strtran(this.Name,"P",space(1)))+100
>var3 = "day1.P" + alltrim(str(v3))
>var4 = "day2.P" + alltrim(str(v3))
>this.Value = int((evaluate(var1)+evaluate(var2)+evaluate(var3)+evaluate(var4))/2)
>
>
>Everything works fine except that the first time the user selects this page (page 3) it takes a long time for the page to refresh and come up. After the first calculation the page works reasonable fast as we skip through the records. I have played with lockscreen but have not been able to find a way to speed up the initial refresh. The page has
>
>
>this.refresh
>
>
>in the activate event.
>
>Does anyone know of a way to speedup the initial calculation?
>
>Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform