Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing fields in a table using a number
Message
De
10/03/1998 17:58:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00083759
Message ID:
00083761
Vues:
24
>Sorry folks, I could find the answer to this one in the VFP help...
>
>How do I reference fields in a table by field# rather than the name of the field. I will be doing this from a report and not in the SQL.

Just used this myself...
=AFIELDS(aArray) <- inserts field information into an array. Quite useful.

 - Or -

FIELD(lnI) <- returns the name of field number lnI in the table. 
              Note that the alias is *not* returned.
Both of these can take a work area name or number as optional parameters.
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform