Grid.GetFocusCell

table Grid.GetFocusCell ( 

string ObjectName )

Description

Returns a table that contains the row and column index of the cell that currently has the input focus in a grid object.

Parameters

ObjectName

(string) The name of the grid object.

Returns

(table) A table indexed by the following values. If an error occurs, nil will be returned. If no cell currently has focus, then Row and Column are both returned as -1.

KEY

TYPE

DESCRIPTION

Row

number

The (zero-based) index of the row.

Column

number

The (zero-based) index of the column.

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