Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Values of fields
Message
De
05/08/2002 20:27:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
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:
00686377
Vues:
42
>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:
>Dime gnx(10)
>For x = 1 to 10
>gnx(x)=mytable.dtdel(x)
>Next x
>
>Can someone help me with code that will work?

SCATTER has been suggested.

As an alternative, allow me to mention SCATTER NAME. This will create an object:
SCATTER NAME loRecord
Will create "object" loRecord, with properties like loRecord.Field1, etc.

This is not an array, but I find it more practical to transfer information. See also GATHER NAME.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform