Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Variables in a SCAN
Message
From
14/01/2009 22:38:58
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Creating Variables in a SCAN
Miscellaneous
Thread ID:
01373889
Message ID:
01373889
Views:
66
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 = 1
	SCAN
		* 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 + 1
	ENDSCAN
Next
Reply
Map
View

Click here to load this message in the networking platform