[Gambas-user] dialog.filter seems broken
Benoit Minisini
gambas at ...1...
Wed Sep 6 18:12:39 CEST 2006
On Wednesday 06 September 2006 15:02, Stefano Palmeri wrote:
> Hi, Benoit.
>
> Running an old project that has a dialog filter with 1.9.40,
> I found that the dialog.filter is broken: simply, it doesn't filter.
>
> This code, taken from the help doesn't work:
>
> Dialog.Title = "Choose a file"
> Dialog.Filter = ["Picture files (*.png; *.jpg; *.jpeg; *.bmp)", "All files
> (*)"]
> Dialog.Path = User.Home
> IF Dialog.OpenFile() THEN
> RETURN
> ENDIF
>
> I'm just able to see all files, not filtered image files.
>
> Gambas 1.9.40
> KDE 3.4.2
>
> Regards,
>
> Stefano Palmeri
>
The syntax of Dialog.Filter will change in the next version. It will be the
same between Dialog.OpenFile, FileChooser and KDE Dialog.OpenFile: a string
array with alternatively the search pattern and the description (or the
contrary, I don't remember).
Regards,
--
Benoit Minisini
More information about the User
mailing list