Grid.IsEnabled

boolean Grid.IsEnabled ( 

string ObjectName )

Example 1

contents_enabled = Grid.IsEnabled("Contents");

Stores true in a variable named "contents_enabled" if the "Contents" grid object is enabled, and false if it is disabled.

Example 2

bGrid4Enabled = Grid.IsEnabled("Grid4");

Checks whether the "Grid4" grid object is enabled or disabled, and sets the "bGrid4Enabled" 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