Label.IsEnabled

boolean Label.IsEnabled ( 

string ObjectName )

Example 1

welcome_text_enabled = Label.IsEnabled("Welcome Text");

Stores true in a variable named "welcome_text_enabled" if the "Welcome Text" label object is enabled, and false if it is disabled.

Example 2

bLabel4Enabled = Label.IsEnabled("Label4");

Checks whether the "Label4" label object is enabled or disabled, and sets the "bLabel4Enabled" variable to either true or false, 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