PATH.SessionVar |
![]() ![]() |
string = PATH.SessionVar( session-var-str AS STRING ) AS STRING
Substitues any session variables in the supplied string.
The following session variables exists
%AppFolder% - Folder of application. MyBASIC2 Console.exe for example %CommonFolder% - Points to Current Common Files folder (Program Files (x86)\Common Files) %SourceFolder% - Folder of calling MyBASIC2 file
Example:
$LIBRARY "mybasic2_extlib" $INCLUDE "MyBASIC2_ExtLib"
OPTION FORMAT ON ' Turns String Formatting On
DIM s AS STRING
s = PATH.SessionVar( "%SourceFolder%\KALLE" ) PRINT "[";STR.Replace( s, "\", "\\" );"]",
|