| **Navigation:**  [[introduction.htm|Language Reference]] > App A - DDE, OLE, and OCX > OCX Library Procedures >====== OCXGETPARAM (return current event parameter string) ====== | [[ocxgetparamcount return number of parameters for current event .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ocxsetparam set current event parameter string .htm|{{btn_next_n.gif|Next page}}]] | | || **OCXGETPARAM(** //reference// ,//number// **)** {{blk2blue.jpg|blk2blue.jpg}} | **OCXGETPARAM** | Returns the value of a parameter associated with the current OCX event. | | //reference// | The label of the first parameter of the event processing callback procedure. | | //number// | The number of the parameter to retrieve. | **OCXGETPARAM **returns the value of the //number// parameter associated with the current .OCX event. This procedure is only valid when the .OCX event processing callback function is active. **Return Data Type:     **STRING **Example:** **OEvent  PROCEDURE(Reference,OleControl,CurrentEvent)  !Event processing callback proc** **Count  LONG** **Res    CSTRING(200)** **Parm   CSTRING(30)** ** CODE** ** IF CurrentEvent <;> OCXEVENT:MouseMove               !Eliminate mouse move events** **  Res = 'Control ' & OleControl & ' Event ' & OleControl{PROP:LastEventName} & ':'** **  LOOP Count = 1 TO OCXGETPARAMCOUNT(Reference)      !Cycle through all parameters** **   Parm = ****OCXGETPARAM****(Reference,Count)               !getting each parameter name** **   Res = CLIP(Res) & ' ' & Parm                      !and concatenate them together** **  END** **  GlobalQue = Res                                    !Assign to a global QUEUE** **  ADD(GlobalQue)                                     !add the entry for later display** ** END                                                 !of all the OCX events and their ** ** RETURN(True)                                        !parameters** **See Also:** [[callback functions.htm|Callback Functions]] [[ocxgetparam return current event parameter string .htm|OCXSETPARAM]] [[ocxgetparamcount return number of parameters for current event .htm|OCXGETPARAMCOUNT]]