Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
Benoit: Excellent! I will remember that for the next time. For now, T Lee Davidson has solved my immediate problem. But just for completeness, here's the info: [System] Gambas=3.8.4 OperatingSystem=Linux Kernel=3.13.0-85-generic Architecture=x86 Distribution=Ubuntu 14.04.4 LTS Desktop=XFCE Th

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Benoît Minisini
Le 28/04/2016 03:04, Ed & Clare Kelm a écrit : > Benoit: > > Thanks for the prompt reply. My project has 8K lines of code, so I will > make a little test project. > > Can you provide me a link which shows how to provide the info you need? > > Ed K. Menu "?" -> "System information" in the IDE. --

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
T Lee: Home run! 1. The "~ shortcut" works fine when the program directly opens a file. 2. When I use your syntax in the Dialog.Path statement, everything works correctly! Many thanks for solving my problem! Ed K. On 04/27/2016 06:01 PM, T Lee Davidson wrote: > I believe the tilde does not

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
Benoit: Thanks for the prompt reply. My project has 8K lines of code, so I will make a little test project. Can you provide me a link which shows how to provide the info you need? Ed K. On 04/27/2016 05:45 PM, Benoît Minisini wrote: > Le 28/04/2016 02:34, Ed & Clare Kelm a écrit : >> I have t

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread T Lee Davidson
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

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Benoît Minisini
Le 28/04/2016 02:34, Ed & Clare Kelm a écrit : > 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

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread Ed & Clare Kelm
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/

Re: [Gambas-user] Setting path in Dialog

2016-01-27 Thread Jussi Lahtinen
It seems to work in here. If the path is "/home/yourname/Desktop", then it will open "/home/yourname" with "Desktop" as a file name. But if the path is "/home/yourname/Desktop/", then it will open the whole path without default file name. "/home/yourname/Desktop/default" will give "default" as the

[Gambas-user] Setting path in Dialog

2016-01-19 Thread Rolf-Werner Eilert
Want to set a filename and ask the user to confirm name and directory: Dialog.Path = Dateiname$ Dialog.Filter = ["*.frm", "Formulare", "*", "Alle Dateien"] If Dialog.SaveFile() Then Return When Save Dialog appears, it fills in the name of the File (base name and extension), but it