Reference

Class

RiString

Name

replaceChar

Description Replaces the character at 'idx' with 'replaceWith'.
If the specified 'idx' is less than zero, or beyond the length of the current text, there will be no effect
Syntax
replaceChar(idx, replaceWith);
Parameters
intthe character index
Stringthe replacement
Returns
RiStringthis RiString
Example
myRiString = new RiString("apple"); 
myRiString.replaceChar(4,"y"); // returns apply
Platform Java / Javascript