ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
SelectedTextWithTag (Property)
In french: TexteSélectionnéAvecBalise
The SelectedTextWithTag property is used to get or change the text selected in a rich edit control (RTF or HTML) with HTML or RTF formatting tags.
Example
MyText is string
MyText = EDT_HTML.SelectedTextWithTag
IF Position(MyText, "<A ") > 0 THEN
Message("In link selection")
END
Syntax

Retrieving the selected text with the tags Hide the details

<Text> = <Edit control>.SelectedTextWithTag
<Text>: Character string
Text found in the edit control with the formatting tags.
Caution: If the control is a Unicode control, the string returned is a Unicode string.
<Edit control>: Control name
Name of the rich edit control to use.

Modifying the selected text with the tags Hide the details

<Edit control>.SelectedTextWithTag = <New text>
<Edit control>: Control name
Name of the rich edit control to use.
<New text>: Character string
New text that must be displayed in the edit control with the formatting tags.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help