DataLinks with ADO in FiveWin

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

DataLinks with ADO in FiveWin

Post by byron.hopp »

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
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Post by Baxajaun »

Hi Byron,

your code:

Code: Select all

Local oDataLink := CreateObject("Datalinks") 
Local oConn := oDataLink:PromptNew() 
is working for me, you can see the image

[img]
http://img300.imageshack.us/my.php?image=sshot1nb8.png
[/img]

Regards,

Felix
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Post by hua »

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:

Code: Select all

msginfo(oConn:ConnectionString)
Post Reply