Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting a single field to a variable.
Message
De
09/06/1999 18:22:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/06/1999 17:50:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00228166
Message ID:
00228181
Vues:
19
>(I'm new to VFP). I'm trying to figure out how to select a field (ie. Cust_ID) into a variable (ie. nNext_ID), without opening a browse window. Currently, doing a command like 'select cust_id as next_id from ids' does indeed get me the information I need, but opens a browse window; therefor requiring manual input from the console to continue.
>
>Any suggestions?

select myfield ... into array myArray

Now you'd get an array with one column, each member would be one value of myfield from your table. If you retrieve only one record, your result will be in myArray[1].

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform