Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-Parameterized Remote View
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00023255
Message ID:
00023698
Views:
28
>>>SELECT * FROM myTable WHERE myCodeField IN ?myCodeVariable and in this particular case
myCodeVariable = "'AAAA','BBBB','CCCC'"
>>
>>Think you need like this
>>
>>select * form mytable where (mycodefield in myvariable(1)).or.(mycodefield in myvariable(2)).or. etc
>>
>That's right, Todd, I implemented this in form of
>SELECT * FROM myTable WHERE myCodeField IN ?aCodes(1),?aCodes(2), etc., but it has fixed number of variables, and we were thinking of different number for each REQUERY().
>
>Nick

then use code to construct the select statement

v='select * from mytable where mycodefield in '
for x=1 to numneeded
v=v+'?acodes('+alltrim(str(x))+'), '
next
v=substr(v,1,len(v)-2)
&v

should do it

HTH
Todd Burstain, MD
infinitydoc@delphi.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform