Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor field contents via listbox index
Message
De
19/12/2000 17:31:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00455246
Message ID:
00455258
Vues:
32
>I have a listbox with its rowsource as a SQL statement into a cursor. I used the example for creating a set of checkboxes in the list box from the MS knowledge base. The example shows how to display or use the value chosen using
ThisForm.List1.ListItem(i)
, where i is the index value of the chosen (checked) item in the list. My question however is how do I get the contents of a field in the cursor for the chosen record, that is not being displayed, rather than the displayed value?


Since the RowSource is a cursor, the record pointer moves in the cursor with the selected item in the listbox.
Say the cursor is called cuRowSource and you want the 2nd field, it would be
lcUnseenValue = cuRowSource.field2
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform