<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-html" lang="x-unicode"> <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.6E91BED0.094BFD6B@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.716405E0.AB0D4452@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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<div class="moz-text-plain" wrap="true" style="font-family:
-moz-fixed; font-size: 12px;" lang="x-western">
<pre wrap="">----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
</div>
</body>
</html>