Grid.GetCellColors

table Grid.GetCellColors (

string ObjectName,

number Row,

number Column )

Description

Gets the background and text colors of a cell as a table with indexes Background and Text.

Parameters

ObjectName

(string) The name of the grid object.

Row

(number) The (zero-based) index of the row.

Column

(number) The (zero-based) index of the column.

Returns

(table) A table indexed by the following values. If the object cannot be found or an error occurs, nil will be returned.

KEY

TYPE

DESCRIPTION

Background

number

The color value of the cell's background. If this value is GRID_CLR_DEFAULT (4278190080) then the cell is set to the default color for cells according to the user's Windows color scheme.

Text

number

The color value of the cell's text. If this value is GRID_CLR_DEFAULT (4278190080) then the cell is set to the default color for cells according to the user's Windows color scheme.

You can use Application.GetLastError to determine whether this action failed, and why.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

See also: Related Actions