Jay Johengen Altamahaw-Ossipee, Caroline du Nord, États-Unis
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Creating Variables in a SCAN
Divers
Thread ID:
01373889
Message ID:
01373889
Vues:
60
I want to create as many variables as there are records in the table and assign them a value that is a field in the table. So, I want to end up with something like this:
Cpt1 = "This is one"
Cpt2 = "This is two"
This is the simple SCAN I want to work it in:
m.ix = 1SCAN * Make a variable based on m.ix like "Cpt1" then "Cpt2" etc, and assign them a value from the table until the scan is done.
m.ix = m.ix + 1ENDSCAN