Microsoft KB Archive/130238

= PRB: Macro Substitution Won't Work in Expression Builder =

Article ID: 130238

Article Last Modified on 2/10/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q130238



SYMPTOMS
When you try to add a macro-substituted memory variable in the Expression Builder, you receive a "Syntax Error."



CAUSE
Macro substitution is used with command syntax. It is not permitted in the User Interface.



WORKAROUND
Use EVALUATE or a named expression that is expressed as "".

See the FoxPro "Language Reference" or Help file for more information on how to use the EVALUATE function, named expressions, or macro substitution.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  In the Command window type the following two lines of code: cVarName = "Hello" cFilter = 'cVarName'   Type the following line of code: GETEXPR TO cX                        In the Expression Builder, type &cFilter, and click OK or Verify.

Additional query words: VFoxWin

Keywords: KB130238

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.