Disconnected Recordset ADO

Disconnected Recordset ADO

Postby byron.hopp » Sun Sep 23, 2007 7:25 pm

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Postby Rick Lipkin » Sun Sep 23, 2007 10:15 pm

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
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby nageswaragunupudi » Mon Sep 24, 2007 2:53 am

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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Disconnected Recordset.

Postby byron.hopp » Wed Sep 26, 2007 5:51 pm

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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 96 guests