Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select query with between dates
Message
 
 
To
10/03/2004 12:16:04
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00884528
Message ID:
00884907
Views:
13
Raj,

Then those memvars are in scope at the time you actually execute the query via macro expansion I am assuming. But if you looked at the SQL string in a messagebox all you will see is the memvar name.

You can use transform() to build SQL strings that would become independent on the memvars:

lcSQL = ... where field1 = " + transform( lnField1 ) ...

>Its working fine,I just ran it and its working fine.
>
>The same query when i am trying to show in a message box, that time its not showing the dates instead it is showing the variable names, thats why i thought the date vales are not carried over into query.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform