<OBJECT>.DISABLE()

Syntax

<OBJECT>.DISABLE()

Form_Name.DISABLE()

Description

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

The <OBJECT>.DISABLE() method makes the object unable to receive focus. The method also works for child objects on forms and may gray them.

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 disables the CreditCard field if the payment method was not "Credit Card":

if (PayMethod.value <> "Credit Card") then

    CreditCard.disable()

else

    CreditCard.enable()

end if

See Also

Form Functions and Methods, Browse Functions and Methods