Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions Introduction > ShutdownMode

ShutdownMode

Gets the mode of the last Shutdown function call. The mode is useful to identify the type of Shutdown that was performed.

Syntax

ShutdownMode()

Return Value

The shutdown mode set when shutdown was called.

Related Functions

Shutdown

Example

nMode = ShutdownMode()
If nMode = 4 Then
Prompt ("Citect closed down and computer was rebooted")
END

See Also

Miscellaneous Functions