gaslouk
Full Member
Hi from beautiful Greece.
Posts: 130
|
Post by gaslouk on Feb 3, 2023 0:35:18 GMT -5
Good morning from beautiful Greece.
Another string variable that confuses me. StartupDir$
Thanks.
|
|
|
Post by xxgeek on Feb 3, 2023 2:22:23 GMT -5
Basically
When working in the IDE and running a bas file you are working on StartupDir$ will return the path of your Liberty install folder, because that is the startup dir of Liberty, or liberty.exe. When running a tkn file from the IDE, same thing.
When running an application created with Liberty the startup folder becomes the folder in which your app runs from, because it is using the renamed run451.exe(liberty.exe without the IDE 'kind of'). In this case, the StartupDir$ will return the same path as returned from DefaultDir$ which is the path to the folder in which the application is running from.
|
|
|
Post by Rod on Feb 3, 2023 3:13:00 GMT -5
There are two main directories involved when running a Liberty BASIC program. Your project directory, where the .bas file is developed. This is called DefaultDir$. It is set when you save your .bas program. The second directory is where the system files were put on installation. If you kept to the default settings this will be c\user\name\program files (x86)\Liberty basic v4.5.1\
Print them both to see what they contain. Also type in %appdata% to windows explorer and navigate to Liberty basic v4.5.1. This is a third folder that contains all of the data files that ship with Liberty, the .bas examples and .bmps and media resources.
All of these variables provide you with paths to Liberty basics resources, be they system files, permanent data files, or user created project files.
|
|
gaslouk
Full Member
Hi from beautiful Greece.
Posts: 130
|
Post by gaslouk on Feb 3, 2023 12:09:16 GMT -5
Thank you very much team!
|
|