Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use CA's InsertCMDRefresh****?
Message
De
30/05/2006 05:38:19
F Bilo
Bilo Office
Fuyang, Chine
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
How to use CA's InsertCMDRefresh****?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01125788
Message ID:
01125788
Vues:
76
I try to use ca's insertcmdRefreshcmd,insertcmdRefreshkeyfieldlist, insertcmdRefreshfieldlist to get the new value of an sql server database's autoinc field.for test, i made an sample form as simple as possible,an set a few things in ca's property:

myca.usededatasource = .t.
myca.insertcmdRefreshfieldlist = "Autoid"
myca.insertcmdRefreshcmd = "Select Autoid from mytable where name =?mycaalias.name"

when i insert an new record,and issure an tableupdate(),there got an error:"the connection handle is not valid", but the record has been successed insert into sqlserver table.

so i tied set an valid connected handle to ca's insertcmddatasource, but it still got that error again.

the topic in vfp9's help is too simple, can anybody help?
txs!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform