Jump to content
Sign in to follow this  
UnknownWarrior

IniReadSection Not Cooperating With _GUICtrlListBox_GetText

Recommended Posts

MsgBox(0,"", $var & " text: " & _GUICtrlListBox_GetText($List1, 0))
Local $var2 = IniReadSection(@ScriptDir & "hey.ini", "asdfg")

hey.ini file

[asdfg]
readme=1

So, my dilemna... I set a Listbox filled with my ini section names when opening the program. All that works fine. But now, I want to read the section name in the .ini that corresponds with the first ListBox item (0 = first line).

My debugging MsgBox is correctly returning asdfg for _GUICtrlListBox_GetText($List1, 0), but when I simply do this:

Local $var2 = IniReadSection(@ScriptDir & "hey.ini", _GUICtrlListBox_GetText($List1, 0))

It tells me that it cannot read the .ini file (@error).

Any ideas why it isn't working when I manually type in asdfg as compared to using the same value found by _GUICtrlListBox_GetText($List1, 0)?

Thanks :/

Edited by UnknownWarrior

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...