Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use CA's InsertCMDRefresh****?
Message
From
30/05/2006 05:38:19
F Bilo
Bilo Office
Fuyang, China
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
How to use CA's InsertCMDRefresh****?
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01125788
Message ID:
01125788
Views:
74
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!
Next
Reply
Map
View

Click here to load this message in the networking platform