Jump to content

COmbo BOx Matters


Recommended Posts

i have a combo box and it's role is something like a playlist and i want when i open a file, the opened file will be added in the combobox as an option...

Case $msg = $btn_Open       
            $varopen = FileOpenDialog("Open Music...","My Computer", "Music (*.wav;*.mp3)", 1)
                If @error Then
                        MsgBox(0,"Wrong","No File(s) chosen")
                Else  
                        $input_open = GUICtrlSetData($input_open, $varopen, $varopen)
                EndIf

this script adds the file to the combobox but when i open again a new file it replaces the existing one...

i want it to be added along with the other one already opened.How?

Link to comment
Share on other sites

I think you want this???

Case $msg = $btn_Open      
            $varopen = FileOpenDialog("Open Music...","My Computer", "Music (*.wav;*.mp3)", 1)
                If @error Then
                        MsgBox(0,"Wrong","No File(s) chosen")
                Else 
                        $input_open = GUICtrlSetData($input_open, GUICtrlRead($input_open) & "|" & $varopen, $varopen)
                EndIf

UNTESTED!

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...