>>IF TYPE(This.ControlSource)='C' >> if empty(This.InputMask) >> This.InputMask='!'+REPLICATE('X',LEN(EVALUATE(This.ControlSource))-1) >> endif >>ENDIF >>>
if dbgetprop('table_name.fieldname', 'field', 'inputmask') == This.InputMask *** then you have not overwritten the input mask else *** the input mask ws changed endif