ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Special cases
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The SelectedText property gets and sets the text selected in an Edit control, editable Combo Box control or editable column in a Table control.
Note: This property avoids the need to use Cursor and CursorEnd.
Example
IF SAI_Saisie1.TexteSlectionné = "<E>"THEN
	SAI_Saisie1.TexteSélectionné = "<Entrer>"
END
Syntax

Getting the selected text Hide the details

<Text> = <Control used>.SelectedText
<Text>: Character string
Text selected by the user in the edit control.
<Control used>: Control name
Name of the control to be used. This field can correspond to:
  • an edit control,
  • a Combo Box in edit mode,
  • a column of a Table control in edit mode.

Changing the selected text Hide the details

<Control used>.SelectedText = <Text to select>
<Control used>: Control name
Name of the control to be used. This field can correspond to:
  • an edit control,
  • a Combo Box in edit mode,
  • a column of a Table control in edit mode.
<Text to select>: Character string
Text that must be highlighted in the control. The text replaces the text that is currently selected.
Remarks

Special cases

  • If the control is in Rich Text Format, the selected text has no formatting.
  • If the control is a Unicode control, the string returned is a Unicode string.

Limits

The SelectedText property is available for the following controls:
  • edit control,
  • editable Combo Box,
  • text column of a Table control.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help