<div dir="ltr"><div dir="ltr"><div>You might want to use Application.Title, but I agree that the documentation is misleading. There isn't editable application name property, because it comes from the directory name. Also the executable name is not in the properties dialog.<br></div><div></div><div></div><div><br></div><div>Jussi<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 3, 2018 at 3:58 PM Hans Lehmann <<a href="mailto:hans@gambas-buch.de">hans@gambas-buch.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font size="+1"><font face="DejaVu Sans Mono">Hello.<br>
<br>
(1)<br>
I create a project with the project name ´GetAppName´.<br>
<br>
Code:<br>
<br>
Public Sub Form_Open()<br>
Label1.Text = "Application.Name = " & Application.Name<br>
End<br>
<br>
(2)<br>
Create executable file. The default name `GetAppName.gambas` is
taken over with `OK`.<br>
Close IDE.<br>
<br>
(3)<br>
Starting the executable file `GetAppName.gambas` results in the
following name for the application:<br>
<br>
<img src="cid:part1.C6595F8A.B7188FE2@gambas-buch.de" alt="" height="131" width="450"><br>
<br>
(4)<br>
Reopen the project with the project name ´GetAppName´ in the
IDE. <br>
Create executable file. The default name `GetAppName.gambas`
will be overwritten with ´get.app.name.gambas` and accepted with
`OK`.<br>
Close IDE.<br>
<br>
(5)<br>
Starting the executable file ´get.app.name.gambas` results in
the following name for the application:<br>
<br>
<img src="cid:part2.219BC757.92217D8B@gambas-buch.de" alt="" height="131" width="450"><br>
<br>
I had expected from the definition <br>
<br>
<i>Application.Name (gb)</i><i><br>
</i><i>Static Property Read Name As String</i><i><br>
</i><b><i>Return the application name, as defined in the IDE
project properties dialog.</i></b><br>
<br>
that the name of the application is `GetAppName` - as in the
first picture, because I hadn't changed the name in the
properties dialog in the IDE.<br>
<br>
I noticed this strange, unexpected result when I used the value
of the Application.Name property to create a directory
($sDataDirPath = Desktop.DataDir &/"gambas3" &/
Application.Name &/"data") in my home directory to export a
database file. With the default executable name, the program
worked as expected. After renaming the executable by changing
all uppercase letters to lowercase and restarting the program
from the project directory, a new directory was created and
there was an empty database file. Great! <br>
<br>
Is there an error in Gambas or is the error on my side?<br>
<br>
With kind regards<br>
<br>
Honsek<br>
</font></font>
</div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>