Previous Topic: SetDrive - Change the Current DriveNext Topic: Sleep - Miscellaneous Function


SetStatus - Return Status Value

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE

The SetStatus function returns a status value from the script.

Function format:

SetStatus(status as Integer) as Boolean
status

Identifies the value that is to be set.

On successful completion, the function returns TRUE; otherwise, returns FALSE.

Example:

This script shows the use of the SetStatus function.

if MsgBox("Should this job return an error?",MB_YESNO)=IDYES then
	SetStatus(NC_ERROR)
else
	SetStatus(NC_OK)
	Print ("The user selected OK when prompted...")
end if