ENUM EditStyle MEMBER Add MEMBER Edit MEMBER Delete MEMBER View END ENUMLet us consider a generic Form that will behave according to some parameter passed during construction:
CLASS MyForm INHERIT Form PROTECTED _Style AS EditStyle CONSTRUCTOR(eStyle AS EditStyle) SUPER() && Call the base class form constructor && A new c# style command SWITCH SWITCH eStyle CASE EditStyle.Add CASE EditStyle.Edit CASE EditStyle.Delete CASE EditStyle.View OTHERWISE && Not one of the above END SWITCH RETURN END CLASSHope this is readable to most.