Disconnected Recordset ADO

Post Reply
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Disconnected Recordset ADO

Post by byron.hopp »

Does anybody know how to disconnect a recordset in FiveWin / xHarbour.

In VB its

Set oRs.ActiveConnection = Nothing

In FiveWin / xHarbour

oRs:ActiveConnection := Nil // does not work.
oRs:ActiveConnection := "" // does not work.

Thanks,

Byron...
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Post by Rick Lipkin »

oRs:Close()

I wrote a thread compiled from my questions .. hope this helps:

http://fivetechsoft.com/forums/viewtopi ... highlight=

Rick Lipkin
SC Dept of Health, USA
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

This is the working solution:

oRs:oConnection:hObj := NIL

I am using this for disconnected recordsets.

You can save the value of hObj and reassign to get reconnected

NageswaraRao
Regards

G. N. Rao.
Hyderabad, India
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Disconnected Recordset.

Post by byron.hopp »

Thanks,

oRs:ActiveConnection:hObj := nil

Works,

I see no reference of an hObj instance variable off the ActiveConnection propertity. How do you know this stuff, is there some defaults about all of these propertities and methods that would be helpful to know. Any information would be greatly appreciated.

Again your solution did work.

Thank you ,
Thanks,
Byron Hopp
Matrix Computer Services
Post Reply