[Gambas-user] Different behaviour of dialog
Willy Raets
willy at ...2734...
Sun Oct 13 14:52:29 CEST 2013
On Mon, 2013-10-07 at 00:37 +0200, Willy Raets wrote:
> Hi all,
>
> Someone on the GambasForum stumbled upon a problem with dialog.
> When trying to help him with an example, the code that worked for me,
> did not work for him.
>
> To explain:
> Assume you have a folder test in your User.Home:
>
> Dialog.Path = User.Home & "/test"
> If Dialog.SaveFile() Then Return
>
> In my application, above code opens a dialog in folder test, in his
> application it opened User.Home and assumed test is the name for the new
> file.
>
> After looking I discovered the difference.
>
> Running above code:
> WITHOUT gb.from.dialog -> opens folder test
> WITH gb.form.dialog -> opens User.Home and assumes test is file name
>
> In the last case. adding a "/" at the end of the path opens folder test
>
> I tried to check the documentation if this is intentional, but it seems
> to be offline again.
>
> Can anyone explain why this difference in behaviour?
>
Still wondering why this difference, can anyone explain why?
--
Kind regards,
Willy (aka gbWilly)
http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org
More information about the User
mailing list