Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving record pointer in listbox
Message
De
05/12/1997 09:30:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00063997
Message ID:
00064008
Vues:
59
>>>Hi, I was flustered in attempting to have a listbox scroll down thru some records(ccpay98.dbf) and have an adjacent editbox display the matching records from another dbf, linked, of course, on a common field.
>>>Using "THISFORM.MYEDITBOX2.VALUE=STR(CCPAY98.TOT_COST)" works only to display the dbf the listbox is using.
>>
>>When you scroll down, you didn't change Listbox.Value yet. It will happen only if you click on another item, then Listbox.Value will change and you can fire Thisform.Editbox.Value=... from Listbox.InteractiveChange event.
>
>Right, but how/where do I set Thisform.Editbox.Value to equal a corresponding value from dbf #2

Do you use DE temp relationships? If yes, then moving pointer in Listbox.Rowsource (checked in InteractiveChange) will invoke moving pointer in table related to Rowsource. BTW, it's more reliable not to use temp relationships, and just perform SEEK() in Listbox.InteractiveChange in second table.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform