ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
  • Example: Various replacements
Example: Various replacements
The following example replaces the occurrences of a word in a string with another word.
ReplacedString is string
ReplacedString = Replace("ABACAD", "A", "x")   // ReplacedString = "xBxCxD"
ReplacedString = Replace("ABACAD", "A", "")    // ReplacedString = "BCD"
ReplacedString = Replace("BABAR", "BA", "x")   // ReplacedString = "xxR"
ReplacedString = Replace("BABAR", "", "x")     // ReplacedString = "BABAR"
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help