6.05 Miscellaneous System Commands

Pause

The pause command pauses the execution for a specified length of time, or until the user presses a key.

Syntax:

pause [secs]

where:

secs
A number of seconds to pause. This can be a whole number of seconds or it can be a decimal fraction or it can be both.
The number is always rounded to three decimal places and converted internally to milliseconds.
If no value is specified, the pause is indefinite and will only be interrupted by a key press.


Returns:

None.

Remarks:

None.

Example:

pause         // waits for a key press
pause 10      // waits 10 seconds or until a key press
pause 1.5     // waits 1.5 seconds or until a key press
pause .300    // waits 300 milliseconds or until a key press

Implementation Status

LynPlex Interpreter Fully implemented
LynPlexC Compiler Not yet implemented.
Similar facilities are available using the sleep and getkey commands.
LynPlexS Compiler Not yet implemented.
Similar facilities are available using the XstSleep function.

Notes:

Environ Command

The environ command adds, changes or deletes a variable in the current environment variable-table.

Syntax:

environ expr

where:

expr
A string expression of the form “name=parameter”
If name already exists in the environment table, its current setting is replaced with the new setting. If name does not exist, the new variable is added.


Returns:

None.

Remarks:

None.

Example:

Implementation Status

LynPlex Interpreter Fully implemented
LynPlexC Compiler Implemented as the setenviron command.
LynPlexS Compiler Not yet implemented.
Similar facilities are available using the XstSetEnvironmentVariable function.

Notes:

The environ command will be replaced at some point by an option on the put statement.

Environ Function

The environ function returns the value of a specified entry in the current environment table. If the parameter is empty (“”) then returns an array of the environment variables (in var=value form)

Syntax:

environ(var)

where:

var
A string expression of the form “var”


Returns:

None.

Remarks:

None.

Example:

Implementation Status

LynPlex Interpreter Fully implemented
LynPlexC Compiler Fully implemented
LynPlexS Compiler Not yet implemented.
Similar facilities are available using the XstGetEnvironmentVariable and XstGetEnvironmentVariables functions.

Notes:

The environ function will be replaced at some point by an option on the get statement.


lynplex/lp0605.txt · Last modified: 2014/06/08 07:05 (external edit)