One more COMate question (ADO)
Posted: Wed Mar 08, 2023 4:28 pm
Thanks everyone, I have COMate up and running. I was hoping to port an app using ADO with a minimum of fuss, but I find this problem:
Using COMate I create ADO.Connection object and connect to database. ...like cn = COMate_CreateObject("ADODB.Connection")
Using COMate I create ADO.Recordset object, and set the properties I want for cursor etc (UseClient, OpenStatic)
...next I was going to recreate this call: recordsetOb.Open("MySQLStatement",ConnectionObject)
But, I find no way to pass the connection object (which I created earlier) in my recordsetOb\Invoke("Open"... call
The examples in the COMate docs show using recordset = connection\Invoke("Execute MySQLStatement") to get the recordset returned. That's fine, but this will always be a forward only cursor, I wanted to use additional recordset functions.
Any thoughts? Is there any way to pass the COMate connection to the COMate recordset during the open call?
(Thanks in advance, no worries if no one is using this library any more)
Using COMate I create ADO.Connection object and connect to database. ...like cn = COMate_CreateObject("ADODB.Connection")
Using COMate I create ADO.Recordset object, and set the properties I want for cursor etc (UseClient, OpenStatic)
...next I was going to recreate this call: recordsetOb.Open("MySQLStatement",ConnectionObject)
But, I find no way to pass the connection object (which I created earlier) in my recordsetOb\Invoke("Open"... call
The examples in the COMate docs show using recordset = connection\Invoke("Execute MySQLStatement") to get the recordset returned. That's fine, but this will always be a forward only cursor, I wanted to use additional recordset functions.
Any thoughts? Is there any way to pass the COMate connection to the COMate recordset during the open call?
(Thanks in advance, no worries if no one is using this library any more)