The information in this article applies to:
SUMMARY
When you are passing variables to a SELECT - SQL command, you may have to
call the command and programmatically pass criteria to it rather than
coding such criteria directly. In many such instances, you may not want to
use macro substitution.
MORE INFORMATION
The programs below are provided as an example of calling a FoxPro SELECT -
SQL command with the selection criteria contained in variables. They employ
name expressions and the EVALUATE function instead of macro substitution.
FoxPro 2.x Example
HAVING EVALUATE(x)=(y); INTO CURSOR OUTPUT
Visual FoxPro Example
HAVING EVALUATE(x)=(y); INTO CURSOR OUTPUT
The output will contain records where the contents of the field whose name is contained in variable x are equal to the contents of variable y. Additional query words: VFoxWin FoxMac FoxDos FoxWin ARGUEMENT
Keywords : kbcode FxprgSql |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |