ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
Finds all the instances of a character string and replaces them with another string in a Word Processing control.
Example
// Replace all "%CustomerName%" by the customer name
WP_MyDocument.Replace("%CustomerLastName%", Customer.LastName)
// Replace "Presentation" by "PRESENTATION"
WP_NoName1.Replace("Presentation", "PRESENTATION", WholeWord)
Syntax
<Word Processing control>.Replace(<Text to replace> , <Replacement text> [, <Options>])
<Word Processing control>: Control name
Name of the Word Processing control to use.
<Text to replace>: Character string
Text to find and to replace in the document. If this parameter corresponds to an empty string (""), the document will not be modified.
<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:
IgnoreCaseCase and accent insensitive search (ignores uppercase and lowercase differences).
WholeWordSearch for the whole word (enclosed in punctuation characters or in space characters).

By default, the search is case-sensitive: the searched text and the text to find must have the same case. To perform a search while ignoring the case, use the IgnoreCase constant.
Business / UI classification: UI Code
Component: wd280mdl.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment