Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using grid cell content to update text field on form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00361304
Message ID:
00361349
Vues:
20
Actually, I had similar code in the VALID for the applicable cell. I ASSumed it might be more efficient for it to be updated only when the user changed something, which is what VALID's are for, right?

- Gerry

>>I did. Here's the code from txtDebit.GotFocus :
>>
>>THISFORM.OrigDebit = THIS.VALUE
>>
>>- Gerry
>
>Now the code in LostFocus? Depending on Debit or Credit column:
>local lnDiff
>lnDiff = This.Value - ThisForm.OrigDebit_or_Credit
>if lnDiff <> 0
>   ThisForm.txtRunningTotal.Value = ThisForm.txtRunningTotal.Value <b>+ or -</b> lnDiff
>endif
** Gerry White / Hagerstown, MD, USA --
** Developing since 1986 in Foxpro, VFP, Oracle, and Java.
** http://GerrysPlace.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform