[Gambas-user] Different behaviour of dialog
Willy Raets
willy at ...2734...
Mon Oct 7 00:37:48 CEST 2013
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?
--
Kind regards,
Willy (aka gbWilly)
http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org
More information about the User
mailing list