ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / HTML Editor functions
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
Replaces one string with another in an HTML Editor control.
Remark: By default, the search ignores the formatting of the string.
Example
// Replace WINDEV with WEBDEV
HTMLEditorReplace(HTMEDT_MyHTMLEditor, "WINDEV", "WEBDEV", htmlWholeWord + htmlCaseSensitive)
Syntax
HTMLEditorReplace(<HTML Editor control> , <Text to replace> , <Replacement text> [, <Options>])
<HTML Editor control>: Control name
Name of the HTML Editor control used.
<Text to replace>: Character string
Text to find and replace in the HTML Editor control.
<Replacement text>: Character string
Character string that will replace <Text to replace>. If this parameter corresponds to an empty string (""), all the occurrences of <Text to replace> will be deleted
<Options>: Optional constant (or combination of constants)
Search options for the text to replace:
htmlCaseSensitivePerforms a case and accent-sensitive search.
htmlWholeWordSearch for the whole word (enclosed in punctuation characters or in space characters).

By default, the search is case-insensitive.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/24/2023

Send a report | Local help