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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 contained in the edit control with the formatting tags.
Caution: If the field is a Unicode field, 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: 09/30/2024

Send a report | Local help