|
|
|
|
|
<Table>.SelectCount (Function) In french: <Table>.SelectOccurrence Returns the number of selected elements in a Table or TreeView Table control (especially for a multi-selection control). The number of selected elements can correspond to: - the number of selected rows (current rows onto which the selection bar is displayed).
- the number of selected cells if the controls allows the selection mode by cell. This option can be configured in the "UI" tab of the control description.
- the number of selected columns if the control allows the selection mode by column. This option can be configured in the "UI" tab of the control description.
i is int
NbSelectionne is int
NbSelectionne = TABLE_Produit.SelectOccurrence()
FOR i = 1 TO NbSelectionne
Trace("Ligne sélectionnée: " + ...
TABLE_Produit[TABLE_Produit.Select(i)])
END
i is int
NbSelection is int = TABLE_MaTable.SelectOccurrence()
FOR i = NbSelection TO 1 STEP -1
TABLE_MaTable.Supprime(TABLE_MaTable.Select(i))
END
Syntax
<Result> = <Table control>.SelectCount([<Information to return>])
<Result>: Integer - Number of selected rows in the specified control,
- 0 if no row is selected.
This number can be greater than 1 for multi-selection controls.
<Table control>: Control name Name of the control to be used. This control can correspond to: - a Table control.
- a TreeView Table control.
<Information to return>: Integer constant Type of information to return: | | tsCell | <Result> will correspond to the number of selected cells. | tsColumn | <Result> will correspond to the number of selected columns. | tsRow (Default value) | <Result> will correspond to the number of selected rows. |
If this parameter is not specified, the function will return the number of selected rows. Remarks Use conditions <Table>.SelectCount can be used on: - Table or TreeView Table controls based on a data file.
- Table or TreeView Table controls populated programmatically.
- single-selection or multi-selection controls.
 Reminder: Multi-selection is not available for Table fields in "Server" mode.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|