IF NOT EMPTY(This.BehaviorType) RETURN THISFORM.aBehavior[This.BehaviorType].txtGotFocus(This) ENDIFWe have several behavior objects that consolidate the code. Our control base classes do almost nothing when their BehaviorType is set to 0, the default. If we set their BehaviorType to 1, we expect the developer was smart enough to drag a behavior object onto the form and call it Behavior1. If you want a group of controls to act a bit different, set their BehaviorType to 2, drag on a Behavior object, call it Behavior2, and add the code to it--in one place.