<OBJECT>.ENABLE()

Syntax

<OBJECT>.ENABLE()

Description

The <OBJECT>.ENABLE() method applies to:

The <OBJECT>.ENABLE() method makes a form able to receive focus. The method also works with fields, buttons, check boxes, etc.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

The following script on the OnDepart event for the PayMethod field on a form enables the CreditCard field if the payment method is "Credit Card":

if (PayMethod.value = "Credit Card") then

    CreditCard.enable()

else

    CreditCard.disable()

end if

See Also

Form Functions and Methods, Browse Functions and Methods