PRB: INDEX ON Expression Var Causes Error and Doesn't EvaluateID: Q125656 The information in this article applies to:
SYMPTOMSAfter using macro substitution or a name expression to change an index filter in an INDEX ON command, you receive this error:
CAUSEFoxPro evaluates the macro substitution or a name expression as a variable name instead of a literal value. A variable used in an INDEX ON command as an Index Filter cannot be evaluated to its underlying value in the resulting index expression when you use macro substitution or a name expression.
STATUSThis behavior is by design. The variable used in the Index Filter must always be present before using that index. Note that macro substitution or name expression will function as expected to the left of the equal sign of the INDEX ON command.
MORE INFORMATION
Steps to Reproduce Behavior1. Create and run a program containing this code:
2. Use macro substitution or name expression to change the INDEX ON
Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a
KBCategory: kbprg kbprb
KBSubcategory: FxprgMacrosub
|
|
Last Reviewed: July 26, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |