Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables
Message
From
17/01/2001 02:40:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Variables
Miscellaneous
Thread ID:
00464555
Message ID:
00464555
Views:
36
I needed to do a sql query and pick a column based on a variable. By trial and error I discovered the following worked.

select desc, co;
from lit;
where lit.afscme="X";
and lit.&vstate="X";
and eng="X";
and mbrpiece="X";
into cursor test

The use aof the & in front of the variable was pure luck.

Is there any place that describes the syntax for the use and assignment of vairables. It seems as if I am always running into this type of problem in using and declaring variables.

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform