Jump to content

ComboBox populated with an array reading from an Ini file.


Hyflex
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...