Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO and cursoradaptor problem! Anybody??
Message
From
26/05/2004 08:46:45
 
 
To
24/05/2004 13:08:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00906520
Message ID:
00907293
Views:
14
Hi Cetin,

I have managed to get the code to work for a select statement. I had to change the sqlconnection define.

I have a few more questions.
1) Do I need to execute the create object for each sql statement i need to call?
2) Do I not need to close the connection at the end?
3) I have include an example to add a record but I get the error "alias not found". Is this the right way I'm doing it

oXC1 = Createobject('xcADOUpdatable', "vtbltest", SQLCONNECTION, ;
"insert into tbltest values(4,4,'my area','my officer')",;
"tbltest",;
"",;
"id,region,area,officer",;
"id tbltest.id, region tbltest.region, area tbltest.area, officer tbltest.officer")

=Tableupdate(.t.)

Do I need to do anything different for an insert,update or delete?
Stuart Reid

True nobility lies not in being superior to another man, but in being superior to one’s previous self
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform