SESSION

Previous  Next

 

out-string = SESSION( in-string AS STRING ) AS STRING

 


 

Substitutes any session variable in the in-string and creates the new output string that can then be used to open, run or load files.

 

The following Session Variables exists

 

%SourceFolder%   - This is the folder of the calling file

%CommonFolder%   - This is the Windows Common Folder

%AppFolder%      - This is same folder as the MyBASIC2 or Script Application

 

Example

 

PRINT SESSION( "%SourceFolder%" ),

RUN( SESSION( "%SourceFolder%\_Dialogs\Options.bas" ) )