Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor Adapter SELECTCMD
Message
De
31/03/2006 11:51:55
 
 
À
31/03/2006 10:50:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01109509
Message ID:
01109550
Vues:
25
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform