nirus
02-14-2005, 08:58 PM
I am trying to search a folder for all files then list them in a list box when the page is shown.
findsource = File.Find("AutoPlay\\Koader Bin\\source", "*.", false, false, nil);
ListBox.AddItem("sourcebox", findsource, "");
It builds but I get the error:
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:
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 )
- Any help .. point me in the right direction or something?
Thank you
Nirus
findsource = File.Find("AutoPlay\\Koader Bin\\source", "*.", false, false, nil);
ListBox.AddItem("sourcebox", findsource, "");
It builds but I get the error:
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:
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 )
- Any help .. point me in the right direction or something?
Thank you
Nirus