Sign in to follow this  
Followers 0
Kip

Single/Multi FileOpen Error

3 posts in this topic

Can somebody tell me what's wrong with this script? It gives an error:

GUICtrlSetData($List1,$SplittedIAL[1] & $SplittedIAL[$i]) 
GUICtrlSetData($List1,$SplittedIAL[1] & ^ ERROR

$IAL = FileOpenDialog("Open audio file(s)",@DocumentsCommonDir,"MP3 files (*.mp3)|WAV files (*.wav)|all files (*.*)",1+2+4)
            $SplittedIAL = StringSplit($IAL, "|")
            $Elements = UBound($SplittedIAL)
            If $Elements = 2 Then
                GUICtrlSetData($List1,$IAL)
            Else
                For $i = $Elements to 1 Step -1
                    GUICtrlSetData($List1,$SplittedIAL[1] & $SplittedIAL[$i])
                Next
            EndIf

With the fileopen dialog you can select more then one file (1+2+4)

Thnx, Kip

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  
Followers 0