I believe the tilde does not work as a shortcut for user's home directory.

You should probably use: Dialog.Path = User.Home &/ "Documents/ED/NEC Antenna 
Files/"


On 04/27/2016 08:34 PM, Ed & Clare Kelm wrote:
> I have the same problem as Rolf.  (2016-01-19 17:11:18)
>
> Setting dialog.path does not work.  Instead, the resulting path is
> always the location of the project.
>
> My project is located in ~/Documents/Gambas Projects/EDNEC/
>
> In the project is this code snippet:
>
> **********
> Dialog.Path = "~/Documents/ED/NEC Antenna Files/"
> Dialog.Title = "Select an Antenna File to Open"
> Dialog.Filter = ["*.txt; *.TXT", "Text Files", "*.NEC", "NEC Input Files"]
>
> Print Dialog.Path
>
> If Dialog.OpenFile() Then Return
> **********
>
> When it executes, the correct path is printed to the IDE, the correct
> title appears on the Open dialog, and the correct filter appears in the
> Open dialog.  However, the path in the Open dialog is ~/Documents/Gambas
> Projects/EDNEC/.
>
> I am using:
>
> Gambas 3.8.4
> Xubuntu 14.04
>
> Any help for this?
>
> Thanks!
>
> Ed K.

-- 
Lee
__________

"Artificial Intelligence is no match for natural stupidity."

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to