Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make my syntax
Message
 
À
17/03/2006 04:41:22
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01105220
Message ID:
01105226
Vues:
19
Hi Reza,
FOR nCounter = 1 TO 6
    STORE EVAL("MyTable.Name"+STR(nCounter,1));
    TO;
    ("m.Name"+STR(nCounter,1))
ENDFOR
or
SCATTER MEMVAR FIELDS Name1,Name2,Name3,Name4,Name5,Name6
MartinJ

>I have a table with 6 fields. ( MyTable.Name1,Name2,Name3,Name4,Name5,Name6) all numeric content
>I want to store value of these fields into memory variables in a for statment.
>
>FOR nCounter = 1 TO 6
> m.Name????nCounter???? = MyTable.Name????nCounter????
>ENDFOR
>
>How can i do this?
>Thanks for your help.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform