[Gambas-user] File dialog question ?can one multi-select

Stefano Palmeri rospolosco at ...152...
Mon Aug 10 17:19:12 CEST 2009


Il lunedì 10 agosto 2009 12:50:07 richard terry ha scritto:
> I want to popup a file dialog and multi-select files and return these say
> in a collection, but can't see any way to do this.
>
> My code looks like this at present, and allows 1 file:
>
> Dialog.Title = "Select Image File"
> Dialog.Filter = ["*.png", "Image Files", "*", "All files"]
>
> If Dialog.OpenFile() Then Return
>
> do something with the file......
>
> Thanks in anticipation.
>
> Richard
>

Using Dialog.OpenFile(TRUE) means you want to select
multifile. Then to read the paths you have to use the dialog property paths, 
(Dialog.Paths) that returns an array of selected paths. See OpenFile help
under Dialog for more info.

Stefano


>
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user






More information about the User mailing list