ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Limitations for the Calendar control
  • Upload control behavior
  • Pivot Table control behavior
  • "Text token" Edit control behavior
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Multiselection (Property)
In french: Multisélection
The Multiselection property gets and sets the selection mode:
  • WINDEVAndroidiPhone/iPad in a Table control.
  • WINDEVAndroidiPhone/iPad in a TreeView Table control.
  • WINDEV in a Pivot Table control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad in a List Box control.
  • WINDEV in a ListView control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad in a Looper control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad in a Calendar control.
  • WEBDEV - Server codePHP of files in an Upload control.
  • WINDEV in a "Text token" Edit control.
Example
// Changes the selection mode based on the value of the Check Box control
IF CBOX_MultiSel = True THEN
TABLE_Table1.Multiselection = True
ELSE
TABLE_Table1.Multiselection = False
END
Syntax

Getting the selection mode Hide the details

<Selection mode> = <Control used>.Multiselection
<Selection mode>: Boolean
  • True if the control allows for multiple selection,
  • False if the control allows for single-selection only.
WINDEVWindowsAndroidiPhone/iPad For Table and TreeView Table controls: Only the selection mode of the rows is taken into account. The selection mode of the columns and cells is ignored.
<Control used>: Control name
Name of the control to be used:
  • WINDEVAndroidiPhone/iPad Table control.
  • WINDEVAndroidiPhone/iPad TreeView Table control.
  • WINDEV Pivot Table control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad List Box control.
  • WINDEV ListView control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Looper control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Calendar control.
  • WEBDEV - Server codePHP Upload control.
  • WINDEV "Text token" Edit control.

Changing the selection mode Hide the details

<Control used>.Multiselection = <New selection mode>
<Control used>: Control name
Name of the control to be used:
  • WINDEVAndroidiPhone/iPad Table control.
  • WINDEVAndroidiPhone/iPad TreeView Table control.
  • WINDEV Pivot Table control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad List Box control.
  • WINDEV ListView control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Looper control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Calendar control.
  • WEBDEV - Server codePHP Upload control.
  • WINDEV "Text token" Edit control.
<New selection mode>: Boolean
  • True if the control must allow for multiple selection,
  • False if the control must be single-selection. If the control switches to single-selection while several elements are selected, only the first selected element is kept.
WINDEVWindowsAndroidiPhone/iPad For Table and TreeView Table controls: Only the selection mode of the rows changes. The selection mode of the columns and cells does not change.
Remarks
WINDEVUniversal Windows 10 AppAndroidiPhone/iPad

Limitations for the Calendar control

In a Calendar control, the Multiselection property can only be used to switch from single-selection mode to multi-selection mode . If the "Range selection" mode is selected in the editor ("Details" tab of the control description window), the Multiselection property has no effect.
WEBDEV - Server codePHP

Upload control behavior

In an Upload control, the Multiselection property can only be used to change the file selection mode in the file picker opened by the Upload control.
WINDEV

Pivot Table control behavior

In a Pivot Table control, the Multiselection property can only be used to switch from single-selection mode to multi-selection mode . The user will be able to select multiple contiguous cells.
This property is equivalent to the "Allow the multiple selection of rows, columns and cells" option in the "UI" tab of the control description window.
WINDEV

"Text token" Edit control behavior

When the "Text Token" Edit control is in multi-selection mode, the user can select multiple tokens (using the Ctrl key, for example). The "Copy", "Paste" and "Cut" options are available in the multi-selection mode. The "Copy all" option in the context menu copies all the tokens in the control.
This property is equivalent to the "Multi-selectable tokens" option in the "General" tab of the control description window.

Limitations

WINDEVAndroidiPhone/iPad The Multiselection property has no effect:
  • on editable Table controls without selection: it returns False.
  • on read-only Table controls without selection: it returns False.
  • on "5.5-compatible" Table controls.
The Multiselection property can be used with the following controls:
  • WINDEVAndroidiPhone/iPad Table control.
  • WINDEVAndroidiPhone/iPad TreeView Table control.
  • WINDEV Pivot Table control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad List Box control.
  • WINDEV ListView control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Looper control.
  • WINDEVUniversal Windows 10 AppAndroidiPhone/iPad Calendar control.
  • WEBDEV - Server codePHP Upload control.
  • "Text token" Edit control.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/12/2024

Send a report | Local help