Function VirtualString(varname: string, [createval: String=""], [group:Integer=0]) : String
Returns the value of the VirtualString with name varname.
(For how to use groups, see the advanced topic VirtualVariable Groups)
If a VirtualVariable doesn't exist with that name, a new one is created (in the specified group) with the value of createval. This means that you can add the VirtualVariables to your program with sane default values so that you don't have to define so many settings in script files, but you leave the option there if the settings are needed. This might be useful if you pack all media into one exe but the exe saves its settings after it is run.
Here is an example of a settings file:
Note that you do not have to use quotation marks.
Here is how it would work in a program:
VirtualStrings can be created either by calling VirtualString on a variable that doesn't exist, using the function ReadSettings or the function MapVirtualString.
This demonstrates use of the second parameter: