Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multicolumn list: can columns be named?
Message
De
06/11/2001 21:09:02
 
 
À
06/11/2001 19:19:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00578308
Message ID:
00578325
Vues:
33
This message has been marked as the solution to the initial question of the thread.
>I have a multicolumn list: lList.
>lList.LIST(2,5) gives me the 5th column of the 2nd item listed in lList. Is there a way to name the columns so that it can be referred to by name, rather than by the column number? Something like: lList.List(2,custid).
>Thank you all!!!

Yes, you can use memory variables set to constant values.
For instance:
CustId = 2 && to reference column 2
CustName = 3 && to reference column 3
etc

Others may suggest #DEFINE constants too. I just avoid those when possible (as here).

Jim Nelson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform