This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
LISTBOX SELECT ROW
|
LISTBOX SELECT ROW ( {* ;} object ; rowPosition {; action} ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, object is an object name (string) If omitted, object is a variable | |||||
object | Form object |
![]() |
Object name (if * is specified) or Variable (if * is omitted) | |||||
rowPosition | Longint |
![]() |
Number of the row to select | |||||
action | Longint |
![]() |
Selection action | |||||
The LISTBOX SELECT ROW command selects the row whose number is passed in position in the list box set in the object and * parameters.
If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a variable. In this case, you pass a variable reference instead of a string. For more information about object names, refer to the Object Properties section.
The optional action parameter, if passed, is used to define the selection action to execute when a selection of rows already exists in the list box. You can pass a value or one of the following constants (located in the “List Box” theme):
Constant | Type | Value | Comment |
lk add to selection | Longint | 1 | The row selected is added to the existing selection. If the row specified already belongs to the existing selection, the command does nothing. |
lk remove from selection | Longint | 2 | The row selected is removed from the existing selection. If the row specified does not belong to the existing selection, the command does nothing. |
lk replace selection | Longint | 0 | The row selected becomes the new selection and replaces the existing selection. The command has the same effect as a user click on a row (however, the On Clicked event is not generated). This is the default action (if the action parameter is omitted). |
When the position parameter does not correspond exactly to an existing row number, the command works as follows:
Notes:
EDIT ITEM
LISTBOX DELETE ROWS
LISTBOX INSERT ROWS
LISTBOX SELECT BREAK
LISTBOX SELECT ROWS
OBJECT SET SCROLL POSITION
Product: 4D
Theme: List Box
Number:
912
Modified: 4D v11 SQL Release 2
Renamed: 4D v12 (SELECT LISTBOX ROW)
Modified: 4D v16 R2
4D Language Reference ( 4D v20 R7)