This similar example uses the control collection to return the control's component handle:

DEFINE VARIABLE chCSSpin AS COM-HANDLE.  /* ActiveX Control */

/* The AppBuilder-generated code from the previous example */

chCSSpin = chCtrlFrame:Controls:Item(1). /* Control handle via Item( ) */