Grid_GetCurSel Method
Description
This method will return the current row and column indexes of the currently selected cell.
Parameters
- MyControlReference
- Reference to the control in the form of MyProject_MyForm_MyControl.
- ProjectFile
- String identifying the project as it was passed in LoadProject.
- DialogName
- String identifying the dialog by name.
- ControlName
- String identifying the control by name.
Return Values
Returns the following according to the situation:
- List of two integers specifying the row and column. If the column index is -1 and the row index is 0 or above, this indicates the entire row is selected.
- Nil if the control is not found or does not support this function.
AutoLISP Syntax
The recommended convention is passing the control identifier directly:
Copy Code |
(Odcl_Grid_GetCurSel
MyControlReference [as Reference]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
(Odcl_Grid_GetCurSel
ProjectFile [as String]
DialogName [as String]
ControlName [as String]) |
Applies For
EditableGrid.
Example
Copy Code |
; Get the curssent selection
(setq rValue (Odcl_Grid_GetCurSel MyProject_MyForm_MyControl)) |
See Also
Grid_SelCurCell,
Grid_SelCurRow