ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE


Asc
Val
  • 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