Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh problem
Message
From
12/12/1997 13:51:30
 
 
To
12/12/1997 13:27:55
Rebecca Stottlemire
Kansas State Department of Commerce
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00065583
Message ID:
00065590
Views:
31
>Hi, thanks for the help on my last problem-Grid, etc.
>Now I have another.
>I have a form that displays fields from one table. The table is in the data environment, buffering is optimistic.
>On the screen are a lot of text fields showing calculations based on the table data. All of the calculations are done in the refresh method of the form using thisform.textfield.value.
>When the user clicks the "next record" button, the button code does a SKIP, then a thisform.refresh. But the refresh comes up with calculations from the previous record. I tried changing the code to use vehicles.del_date*vehicles.net_cost, etc., but I still get the previous record.
>Any ideas?

I am guessing that the problem lies somehere in the order that things are being refreshed.
A piece of OO advice though; put the code that calculates the value for a textbox in the textbox's refresh method.

this.value = vehicles.del_date*vehicles.net_cost

Try this and see if the problem persists.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform