_STARTDIR$

From QB64 Phoenix Edition Wiki
Revision as of 22:41, 2 January 2024 by A740g (talk | contribs) (Add info about path separator (like _CWD))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _STARTDIR$ function returns the path a user called a QB64 program from as a string value without a trailing path separator.


Syntax

callPath$ = _STARTDIR$


Description

  • Returns a STRING representing the user's program calling path.


Availability

  • QB64 v1.0 and up
  • QB64-PE all versions


Examples

Example: Showcasing QB64 path functions:

$CONSOLE:ONLY
_DEST _CONSOLE
SHELL "cd"
PRINT _CWD$
PRINT _STARTDIR$
SYSTEM
Code by Galleon


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link