Sign in to follow this  
Followers 0
Zoomba

ODBC list selection

2 posts in this topic

Hello all

I'm trying to get the System DSN's list (from ODBC) into a combo dialog

As the user I want to select the DSN he wants and click OK -> which will result in an output for my script

Was hoping som1 already has a piece of code that does something like that :D

Thanx :D

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hello all

I'm trying to get the System DSN's list (from ODBC) into a combo dialog

As the user I want to select the DSN he wants and click OK -> which will result in an output for my script

Was hoping som1 already has a piece of code that does something like that :D

Thanx :D

Hi,

not a piece of code, but i think easy to start with.

You have to read values from registry. Have a look at functions RegEnumVal, RegRead and _GuiCtrlComboBoxAddString.

The System DSN are stored in HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources.

If you have problems come back and may post some code.

;-))

Stefan

Edited by 99ojo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0