- Code: Select all Expand view RUN
- &cVarName := cVarValue
I must declare before cvarname ?
I explain you
I take the variables from a extern file sample
- Code: Select all Expand view RUN
FUNCTION ReadFile()
local cFileName := "table_1.dat"
local aInfo := ReadProtectedFile(cFileName)
local aItem,cVarName,cVarValue
FOR EACH aItem IN aInfo
cVarName := aItem[1]
cVarValue := aItem[2]
&cVarName := cVarValue
NEXT
?c8
RETURN NIL
When I load the file I can Know how many variables there are into
for example if there are 3 variables their names will be c1,c2,c3
How I must declare these variables before to assign the cVarValue ?
Must I use memvar?