Jump to content
Sign in to follow this  
Hyflex

ComboBox populated with an array reading from an Ini file.

Recommended Posts

Hyflex

Hey,

The GUI Combo Box seen below should be populated via an Ini File...

$GUIAccountSelector = GUICtrlCreateCombo("", 24, 24, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetOnEvent(-1, "GUIAccountSelectorChange")
GUICtrlSetData(-1, "" )

I've been trying to use IniReadSectionNames in various ways but I have no idea how to use it in an array to make it appear in a combobox.

The ini file looks like:

[testusername]
Username=testusername
Password=testpassword


[Ryan]
Username=Ryan
Password=password


[Lauren]
Username=Lauren
Password=password123

Please give me some help

- XG

Share this post


Link to post
Share on other sites
JoHanatCent

So ... did you go through the example as refered to in post #7

here?:


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  

×