Function AppExit

 

Function AppExit( byVal nFlag ) as Long

Purpose: Terminate application

Works in:      OneLiner and Power Flow.

Parameters:     

nFlag          [in] Set bit 1 of this flag to save changes in OLR file
     Set bit 2 of this flag to suppress on-screen dialog boxes

 

Return value:

Remarks: You must stop script executation immediately after calling this function. Running PowerScript code after AppExit() can lead to undetermined outcomes.

Example:

  Call AppExit( 1+2 )  ‘ Save changes and exit OneLiner/Power Flow. Show no dialog box

  Stop                 ‘ Stop script