<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body 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 moz-do-not-send="false"
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 moz-do-not-send="false"
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>
</body>
</html>