Bob,
It's not a bug but a feature that exists in Foxpro since I can remember (Fox 2.x). Foxpro does macro substitution in string literals if macro variable value is a string. I agree, that string literals shoudn't be affected by macro substitution but they are.
>FoxPro seems to have a problem during a variable assignment when the name of a local (or global) variable is contained within a string literal with a preceding ampersand and succeeding space. "someValue &localVarName someOtherValue"
>
>Can somebody explain??
>
>
>Code summary:
>
>Test()
>
>FUNCTION Test()
> LOCAL localVarName
> localVarName = ""
> localVarName = "someValue &localVarName someOtherValue"
> ?localvarName
>ENDFUNC
>
--sb--