Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro changes variable type
Message
From
07/02/2002 12:37:54
 
 
To
07/02/2002 11:24:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616675
Message ID:
00616773
Views:
23
You don't need macro substitution:
FOR i = THISFORMSET.nStart TO THISFORMSET.nEnd
	FOR lnPosCommands = 1 TO ALEN(THISFORMSET.acCommands)
*		lcCommand = THISFORMSET.acCommands(lnPosCommands)
*		&lcCommand
		EVALUATE(THISFORMSET.acCommands(lnPosCommands))
	ENDFOR
	=MESSAGEBOX(VARTYPE(i)) &&<= displays 'C'
	*i = Val(i)
ENDFOR
Check THISFORMSET.acCommands[], may have "i = ALLTRIM(STR(i))"

Is i being passed by reference to any of the functions?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform