DonDrew wrote:I'm having a problem controlling the behavior of a combobox change event response.
Every time I update the array of list items, oClaim_Num:SetItems( aClaims ), the change event response is triggered. Is there any way I can restrict the change response to user input only?
Don
Hello... you can try this change in the class
METHOD Reset( lChanged ) INLINE Eval( ::bSetGet,;
If( ValType( Eval( ::bSetGet ) ) == "N", 0, "" ) ),;
::nAt := 0, ::SendMsg( CB_RESETCONTENT ),;
if( ( lChanged != NIL .and. lChanged ) .or. ( lChanged == NIL ), ::Change(), )
METHOD SetItems( aItems, lChanged ) INLINE ::Reset( lChanged ), ::aItems := aItems,;
::Default(),;
if( ( lChanged != NIL .and. lChanged ) .or. ( lChanged == NIL ), ::Change(), )
use oClaim_Num:SetItems( aClaims,
.F. )