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
(Created page with "{{DISPLAYTITLE:_STARTDIR$}} The _STARTDIR$ function returns the path a user called a QB64 program from. {{PageSyntax}} : {{Parameter|callPath$}} = _STARTDIR$ {{PageDescription}} * Returns a STRING representing the user's program calling path. ==Availability== * '''Version 1.000 and up'''. {{PageExamples}} ''Example:'' Showcasing QB64 path functions: {{CodeStart}} '' '' {{Cl|$CONSOLE}}:ONLY {{Cl|_DEST}} {{Cl|_CONSOLE}} {{Cl|SHELL}} "cd" {{Cl|PRINT}} {{C...") |
m (Add info about path separator (like _CWD)) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:_STARTDIR$}} | {{DISPLAYTITLE:_STARTDIR$}} | ||
The [[_STARTDIR$]] function returns the path a user called a QB64 program from. | The [[_STARTDIR$]] function returns the path a user called a QB64 program from as a string value without a trailing path separator. | ||
{{PageSyntax}} | {{PageSyntax}} | ||
Line 10: | Line 11: | ||
{{PageAvailability}} | |||
* ''' | * '''QB64 v1.0 and up''' | ||
* '''QB64-PE all versions''' | |||
{{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 22: | Line 24: | ||
{{Cl|PRINT}} {{Cl|_CWD$}} | {{Cl|PRINT}} {{Cl|_CWD$}} | ||
{{Cl|PRINT}} {{Cl|_STARTDIR$}} | {{Cl|PRINT}} {{Cl|_STARTDIR$}} | ||
{{Cl|SYSTEM}} | {{Cl|SYSTEM}} | ||
{{CodeEnd}}{{ | {{CodeEnd}} | ||
{{Small|Code by Galleon}} | |||
Latest revision as of 22:41, 2 January 2024
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 |
See also