PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Special cases
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Property SelectedText allows to know and modify the text selected in an edit control, an Combo Box control in input or a column of an Table control in input.
Remark: This property allows you to avoid using Cursor and CursorEnd.
Example
IF EDT_Edit1.SelectedText = "<E>" THEN
EDT_Edit1.SelectedText = "<Enter>"
END
Syntax

Finding out 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 control to use. This control can correspond to:
  • an edit control,
  • a Combo Box in edit mode,
  • a column of a Table control in edit mode.

Modifying the selected text Hide the details

<Control used>.SelectedText = <Text to select>
<Control used>: Control name
Name of control to use. This control 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 (with quotes)
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 RTF format, the selected text is a text without formatting.
  • If the control is a Unicode control, the string returned is a Unicode string.

Limits

The Property SelectedText is available for the following fields:
  • edit control,
  • editable Combo Box,
  • text column of a Table control.
Windows Mobile The Property SelectedText is not available in set for RTF fields under Windows CE.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment