Initializing help system before first use

insightsetusername

insightsetusername


Purpose
Sets the value to use for the Insight user name during a test.
Synopsis
procedure insightsetusername(newusername:text)
Argument
newusername 
The string to use for the user name
Example
insightsetusername('LouisXIV')
writeln('user name = ',insightgetusername)
Demonstration of setting the user name then outputting it
Further information
1. Used to mock the user who requested the scenario execution, when testing code outside of an Insight scenario.
2. Calling this procedure when insight_testmode is false will cause the model to abort with a runtime error.
Related topics