Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about table columns
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00392440
Message ID:
00392456
Views:
9
>>I curious whether or not it is possible to access a table by using some sort of column number rather than having to use the column name.
>
>IMO, it's not possible because VFP tables are not objects.
>
>AFIELDS() however, is the nearest means that I know of to access table fields.
>
>Select YourTableHere
>nFldcount = AFIELDS(gaMyArray)  && Create array
>FOR i = 1 TO nFldcount
>   ? gaMyArray(i,1)  && Display field names
>ENDFOR
You might also want to look into ADO.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform