Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multicolumn list: can columns be named?
Message
From
06/11/2001 21:09:02
 
 
To
06/11/2001 19:19:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00578308
Message ID:
00578325
Views:
32
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
Previous
Reply
Map
View

Click here to load this message in the networking platform