| Visual FoxPro Tips |
| |
| Name Expressions |
| |
| When possible, use name expressions
instead of macro substitutions. For example: |
| |
cTable = 'customers'
use &cTable && Macro substitution.
use (cTable) && Name expression. |
| |
| Not only name expressions are
faster, but also they prevent common errors with
spaces in strings. For example: |
| |
lcFileName = "c:\Program
files\My Data Path\My table.dbf"
use &lcFile && Returns with error if
c:\program.dbf doesn't exist
use (lcFile) && Correct DBF is opened |
| |
| This tip is provided to you
by Foxy Classes.
For more Visual FoxPro tips,
click here. |
| |