ACCEPTED (return control just completed)

Top  Previous  Next

 

ACCEPTED( )

The ACCEPTED procedure returns the field number of the control on which an EVENT:Accepted event occurred. ACCEPTED returns zero (0) for all other events.

Positive field numbers are assigned by the compiler to all WINDOW controls, in the order their declarations occur in the WINDOW structure. Negative field numbers are assigned to all APPLICATION controls. In executable code statements, field numbers are usually represented by field equate labels--the label of the USE variable preceded by a question mark (?FieldName).

Controls with a USE variable get EVENT:Accepted, but not those with a USE field equate.

Return Data Type:

SIGNED

Example:

CASE ACCEPTED()      !Process post-edit code

OF ?Cus:Company

!Edit field value

OF ?Cus:CustType

!Edit field value

END

 

See Also:

ACCEPT

EVENT