Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Variables in a SCAN
Message
De
15/01/2009 03:27:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01373889
Message ID:
01373937
Vues:
16
>Jay,
>
>Why wouldn't you use an array instead? in my opinion much simpler to deal with... but then I don't know your specific requirement :)
>
>
>local laArray,lnX
>select mytable
>lnX=0
>scan all
>  lnX=lnX+1
>  dimension laArray(lnX)
>  laArray(lnX)=mytable.myfield
>endscan
>
Or even simpler
Select myfield from mytable into array laArray
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform