I am trying to search a folder for all files then list them in a list box when the page is shown.
It builds but I get the error:Code:findsource = File.Find("AutoPlay\\Koader Bin\\source", "*.", false, false, nil); ListBox.AddItem("sourcebox", findsource, "");
On Show, Line 12: Argument 2 must be of type string
Not sure why findsource is not a string
I had it done in Autoplay 4.0 and it looked like this:
- Any help .. point me in the right direction or something?Code:File.Search ( %Files%, ;;, *, 0, 0, 0, 0, 1, %SrcDir%\AutoPlay\Koader Bin\source, 0, Searching for Files, Loading List of available programs, 0 ) ListBoxObject.AddFiles ( Installers, 0, , %Files%, ;;, 2, 1 ) File.Search ( %zipfiles%, ;;, *, 0, 0, 0, 0, 1, %SrcDir%\AutoPlay\Koader Bin\zip\, 0, Searching for Files, Loading List of available programs, 0 ) ListBoxObject.AddFiles ( zip, 0, , %zipfiles%, ;;, 2, 1 )
Thank you
Nirus


