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.
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
SelectedTextWithTag (Property)
In french: TexteSélectionnéAvecBalise
SelectedTextWithTag is used to find out or modify the text selected in a rich edit control (in RTF or HTML format) with the HTML and RTF formatting tags.
Example
MyText is string
MyText = SAI_HTML.TextSelectedWithTags
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 (with quotes)
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