Kip Posted May 2, 2007 Share Posted May 2, 2007 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 MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 2, 2007 Developers Share Posted May 2, 2007 For $i = $Elements-1 to 1 Step -1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Kip Posted May 2, 2007 Author Share Posted May 2, 2007 Thanx for the (very) quick response! It works! Thnx (landgenoot ) MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now