STARTDIR$: Difference between revisions
Jump to navigation
Jump to search
Code by Galleon
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
{{PageExamples}} | {{PageExamples}} | ||
''Example:'' Showcasing QB64 path functions: | ''Example:'' Showcasing QB64 path functions: | ||
{{CodeStart}} | {{CodeStart}} | ||
{{Cl|$CONSOLE}}:ONLY | {{Cl|$CONSOLE}}:ONLY | ||
{{Cl|_DEST}} {{Cl|_CONSOLE}} | {{Cl|_DEST}} {{Cl|_CONSOLE}} | ||
Line 23: | Line 23: | ||
{{Cl|PRINT}} {{Cl|_CWD$}} | {{Cl|PRINT}} {{Cl|_CWD$}} | ||
{{Cl|PRINT}} {{Cl|_STARTDIR$}} | {{Cl|PRINT}} {{Cl|_STARTDIR$}} | ||
{{Cl|SYSTEM}} | {{Cl|SYSTEM}} | ||
{{CodeEnd}}{{small|Code by Galleon}} | {{CodeEnd}}{{small|Code by Galleon}} | ||
Revision as of 02:46, 23 January 2023
The _STARTDIR$ function returns the path a user called a QB64 program from.
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 |
See also