Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor Adapter SELECTCMD
Message
From
31/03/2006 11:51:55
 
 
To
31/03/2006 10:50:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01109509
Message ID:
01109550
Views:
26
Chet,

>I am having an issue with my Parameter in my SelectCmd of my cursor adapter. I want an empty cursor to be returned if I set the value of my parameter to .null. This works great for CHAR fields, however, integers, I am getting an error.

See my reply to MikeY for some more details on his idea.

Meanwhile, are you just looking for a way to get an empty cursor whenever you want one? If so, just call CursorFill(.T., .T.) -- the first param is lUseCursorSchema and the second param is lNoData.

NOTE: You probably need to add your usual third and fourth params to make this work -- I usually don't work with ADO in CursorAdapter, so I haven't tested just the two params with DataSourceType = "ADO".
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform