Replace

Syntax

String:Replace(find, replace, text, return)

Description

Replaces the existence of find with replace from the text.

Note

None.

Example

function main() {
  Var:String myStr = "Hello World";
 
  String:Replace("o", "i", myStr, myStr)   //copy myStr but replace all "o" to "i"
  Konsol:Log(myStr) //see the log for "Helli Wirld"
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net