| Home | All functions | Categories |
vuCloseApp(LONG), Signed
Requests the application to close. This is intended for situations where you need to close an app from code (including from a background polling loop), without relying on Clarion HALT.
| Parameter | Data Type | Description |
|---|---|---|
| Mode | LONG | Close mode: 0 = Graceful close request (cooperative, may prompt) 1 = Graceful close request + forced terminate after a delay (safety net) 2 = Hard kill immediately (no prompts, no cleanup) |
A LONG value:
! Mode 0: cooperative close (may prompt user to save changes)
vuCloseApp(0)
! Mode 1: cooperative close first, then forced terminate if still running
vuCloseApp(1)
! Mode 2: immediate hard kill (no prompts, unsaved work can be lost)
vuCloseApp(2)
! After calling, exit your current code path (RETURN from a PROCEDURE, or EXIT from a ROUTINE).
| Home | All functions | Categories |