Button.IsEnabled

boolean Button.IsEnabled ( 

string ObjectName )

Example 1

enabledus_buttonis = Button.IsEnabled("Fake Latin Toggle");

Stores true in enabledus_buttonis if the "Fake Latin Toggle" button object is enabled, and false if it is disabled.

Example 2

bMustardEnabled = Button.IsEnabled("Mustard Valve");

Checks whether the "Mustard Valve" button object is enabled or disabled, and stores true or false in the bMustardEnabled variable accordingly.

Tip: Starting a variable name with "b" is a technique that programmers use to help themselves remember that a variable contains a boolean value.

See also:  Related Actions