FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DataLinks with ADO in FiveWin
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
DataLinks with ADO in FiveWin
Posted: Tue Nov 14, 2006 04:09 AM

FYI,

I wanted to utilize the Datalink Wizard to obtain a properly formatted ADO connection string below is how to do this.

Local oDataLink := CreateObject("Datalinks")
Local oConn := oDataLink:PromptNew()

I spend a long time trying to find this, I can't believe it was this easy...

Byron,

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
DataLinks with ADO in FiveWin
Posted: Tue Nov 14, 2006 09:36 AM
Hi Byron,

your code:

Local oDataLink := CreateObject("Datalinks") 
Local oConn := oDataLink:PromptNew()


is working for me, you can see the image

http://img300.imageshack.us/my.php?image=sshot1nb8.png
" alt="" loading="lazy">

Regards,

Felix
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
DataLinks with ADO in FiveWin
Posted: Sun Jan 27, 2008 08:01 PM
I just want to add, if you want to see the value of the connection string, just tack the following at the end of Byron's code:
msginfo(oConn:ConnectionString)
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion