Hi Emanuele,
I don't use [] for strings - I use either single or double quotes, so I hadn't seen this behaviour before although I seem to remember reading something about it (maybe here on the UT). It certainly appears that VFP is evaluating the string for DEFINEs. Use single or double quotes instead.
Regards,
Liam
>Copy & Paste this code in a .Prg:
>
>#define NUMBER 1000
>? [The num. is NUMBER]
>
>executing the .prg you'll have this:
>
>The num. is 1000
>
>Someone can explain me Why ?
Liam O'Hagan
MCP VFP Desktop Apps