Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh problem
Message
De
12/12/1997 16:14:37
Rebecca Stottlemire
Kansas State Department of Commerce
Topeka, Kansas, États-Unis
 
 
À
12/12/1997 13:52:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00065583
Message ID:
00065673
Vues:
36
>>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?
>
>It's a good idea to move all record-specific code for unbound controls into custom method and fire it programmatically anytime you move record pointer. When you do it in standard (Refresh) method, your code is prone to 'hidden' behaviour, i.e. it can be triggered internally by VFP itself.


Ha, got it! thanks for your help. I put all of the code in a custom method and call it from every field's valid even that affects the outcome of the calculations--plus the navigations buttons.
Have a good weekend! Becky
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform