Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using grid cell content to update text field on form
Message
De
20/04/2000 01:27:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00361304
Message ID:
00361662
Vues:
15
I have solved exactly the same problem with the following code: (except that I have the same field for debit and credit).

In the debit/credit cells LostFocus:
Thisform.txtSumma.Refresh()

In the txtSumma.Refresh: (tVerif2 is my grid table)
LOCAL lnRecno

if reccount('tVerif2') > 0
select tVerif2
lnRecno = recno()
sum belopp to this.value &&belopp is my debit/credit field
if lnRecno <= reccount('tVerif2')
go top
else
goto (lnRecno)
endif
endif

This works fine for me... I know that with this procedure I do a lot of code execution, but it dosen't matter becouse it is fast enough so the user never notice it and never get interrupted with his work.
---( Mårten Törnquist )---
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform