SUI_HandleFormActions Table of Contents || Prev | Next || [?]

 
SUI_HandleFormActions (tableNumber) --> actionCode
 
ParameterTypeDescription
tableNumberIntegerTable number of form
 
ReturnsTypeDescription
actionCodeIntegerInquire4D Action Code, otherwise 0
 
Description

SUI_HandleFormActions invokes several automatic actions.

For output forms, it causes SUI Pack to sort and select records, and enables the execution of any methods set up with SUI_AddFormCommand.

For input forms and dialogs, it engages objects set up with SUI_AddFormField, SUI_AddFormVariable, etc., as well as form commands set up with SUI_AddFormCommand.

Example

Case of
  : (Form event=On Outside Call) `SUI Pack is calling...
    $SUIAction:=SUI_HandleFormActions(Table(Current form table))
    If ($SUIAction=Order By Asc AC) | ($SUIAction=Order By Desc AC)
      PLAY("sort_sound";1)
    End if
End case