Zakaria,
What's the value of stored in cTafellx variable at the time of error? Do you've field named cTafellx in the table you work on? BTW, you don't need macro substitution in this case.
REPLACE ALL lx WITH EVALUATE("SterfteTabel." + m.cTafellx)
>Hello,
>
>I have code with Macro Expansion. I have noticed that the code doesn't execute always properly, sometimes is gives an error : "Command contains unrecognized phrase/keyword" . I use the next code :
>
>
>cTafellx = "gbm6165lx"
>REPLACE ALL lx WITH SterfteTabel.&cTafellx
>
>Could someone explain me what I'm doing wrong, and if there are better methods to achieve the above.
>
--sb--