User Tools

Site Tools


accepted_return_control_just_completed_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== ACCEPTED (return control just completed) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

ACCEPTED( )

blk2blue.jpg

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

accepted_return_control_just_completed_.htm.txt · Last modified: 2021/04/15 15:56 (external edit)