Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Values of fields
Message
De
05/08/2002 13:13:00
 
 
À
05/08/2002 12:42:57
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00686213
Message ID:
00686227
Vues:
45
Steven,

Like Yuri said, SCATTER may do what you want. It will put all fields in an array. If you are trying to grab only some of them, use the eval() function, see below:

>I have a table with fields named dtdel1, dtdel2, dtdel3, dtdel4 etc.
>
>I want to loop through these fields and create an arry of values.
>
>Example:
dimension gnx(10)
for x = 1 to 10
    gnx(x) = eval("mytable.dtdel"+transform(x))
next x
>
>Can someone help me with code that will work?
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform