Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about table columns
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00392440
Message ID:
00392458
Vues:
12
How about using Field() - returns the column name from a field number so you can use the evaluation from that.

>>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
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform