docs

Home All functions Categories

vuRunOnReboot(Action)

vuRunOnReboot(LONG), Signed

Description

Arms or disarms automatic restart of your application after an abnormal termination or system shutdown. Unlike Startup, this only restarts the program if it was running at the time of the crash or power loss. If the application ends normally, it will not restart on reboot.

Parameters

Parameter Data Type Description
Action LONG 1 (True) to arm, 0 (False) to disarm.

Returns

A LONG value:

Example

! Arm at program start
vuRunOnReboot(1)

! Disarm at program end
vuRunOnReboot(0)

Notes

Home All functions Categories