Edit

GetActiveListColumn (listRef)

Result Type:  number

Definition:  Returns the column number (0-based) of the active cell (has keyboard focus) of the editable list. If the keyboard focus is not in the list, the return value is -1.

Note that (particulalry on Windows) clicking a button or other control may remove keyboard focus from the list, so you may need to store the value in a property in an EnterCell handler for the list if you want to use the list column that was active when a button was clicked.

Availability:  MWScript handlers in MoneyWorks Gold 8.1.3 and later

See Also:

AddListLine: Add a row to an editable list

DeleteListLine: Delete a row from an editable list

EnterCell: A cell in an editable list has just gained focus

ExchangeListRows: Swap rows in an editable list

ExitedCell: A cell in an editable list has just lost focus

GetActiveListRow: Get the row number of an edit list that has keyboard focus

GetListField: Get the text of an editable list field

GetListHandle: Get list handle from window handle and list ident

GetListLineCount: Get number of rows in a list

GetListName: Selected tab name for Transaction entry details list

MergeOrderLines: Merge order lines (opposite of SplitOrderLines)

SetListField: Set the text of an editable list field

SortListByColumn: Sort an editable list by a column

SplitOrderLine: Duplicate a line item on an order, splitting the order qty (for serial entry)

ValidateCell: Control whether the content of a cell is acceptable and the cell can be exited