Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to th IN clause
Message
From
20/07/1999 14:36:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Passing a parameter to th IN clause
Miscellaneous
Thread ID:
00243695
Message ID:
00243695
Views:
52
Hi All,

Using VFP 6.0 I can pass dates as per below but how to pass items to the IN clause? Any help will be appreciated.

lcProdCds = "'F', 'G', 'H'"

WORKS:
and Actual_Office_Cplt_Dt > ldBegPer;
and Actual_Office_Cplt_Dt < ldEndPer;
AND SUBSTR(vOFF_DOC.PROD_CAT_CD,1,1) IN ("'F', 'G', 'H'");


DOES NOT WORK:
and Actual_Office_Cplt_Dt > ldBegPer;
and Actual_Office_Cplt_Dt < ldEndPer;
AND SUBSTR(vOFF_DOC.PROD_CAT_CD,1,1) IN ?(lcProdCds);

TIA.

Regards,

Paige
Next
Reply
Map
View

Click here to load this message in the networking platform