Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT ... WHERE process in ?lcProcess
Message
From
15/08/1996 15:56:37
Mark Stanton
The New Software Company Ltd.
Watford, United Kingdom
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00005765
Message ID:
00005798
Views:
32
>I'm not familiar with macrosubstituting. How is this implemented?

I think you probably are, but perhaps not familiar with the word.
You're doing it already, now you need to expand the scope.
Do something like

lcWhereClause = "WHERE INLIST( TheField, " + yourvariable + ")"

"yourvariable" being the one you made be '"A","B"'

Then your SQL is

SELECT ;
FROM TheTable ;
&lcWhereClause ;
INTO

(can you tell I've forgotten a lot)

I expect someone will find I've made an error in this, it's been a long day.

Hope that helps
(ahah! That's probably "HTH")

Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform