Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursoradaptor parameters
Message
 
 
To
13/10/2004 18:35:25
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00951251
Message ID:
00951371
Views:
7
In addition to what Bernard replied, about the best you do to parameterize your in list is:

WHERE History in (?nParm1, ?nParm2)

If you only need 1o match one value, set nParm1 and nParm2 to that same value.

>I am just jumping in to Cursoradaptors and have set up a DE class containing a few CA's. My data is in SQL server. I'm trying to set a parameter in one of my CA's for a logial (SQL bit) field. What I really want is
>
>select names from employees where history in (0,1)
>
>sometimes I just want the 0's and sometimes I just want the 1's so...
>
>select names from employees where history in ?cParameter
>
>This doesn't work when I set:
>
>cParameter='(0,1)'
>cParameter='(0)'
>
>Also, is there anything like macro substitution in the arena?
>
>thanks
>
>bonnie
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform