| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== ACCEPTED (return control just completed) ====== | [[abs return absolute value .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[acos return arccosine .htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} **ACCEPTED( )** {{blk2blue.jpg|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 the event processor .htm|ACCEPT]] [[event return event number .htm|EVENT]]