Jump to content

Populate ComboBox problem


 Share

Recommended Posts

Hello,

I can't seem to figure out why my combobox control won't populate. I'm using version 3.0.103.149 and it looks like that I have everything right in my code. The text file reference is a 1 line txt file with the data separated with '|'. Maybe I'm doing something wrong?

$file = FileOpen("C:\some dir here\notes.txt",0)
$temp = FileReadLine($file,1)

$cboNotes01 = GuiCtrlCreateCombo("Please select an item...", 100, 10, 160, 21)
GUICtrlSetData($cboNotes01,$temp)

Is there something missing here from populating the comboBox?

Thanks is advance,

Modernes

Link to comment
Share on other sites

Hi,

the 3.0.102 version does not have any GUI functions.....

Andre

<{POST_SNAPBACK}>

Yeah...sorry about that. I just found that out. However, the temp value does in fact read the value from the text file. I checked it out with the messagebox, but it's still not populating. I'm out of ideas... :lmao:
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...