CALC.replace(old_string, start_num, num_chars, new_string)

Replaces part of a text string, based on the number of characters you specify, with a different text string. Old_string is text in which you want to replace some characters. Start_num is the position of the character in Old_string that you want to replace with New_string. Num_chars is the number of characters in Old_string that you want to replace with New_string.

Example

CALC.replace('abcdefghijkl',6,5,'*');

// returns abcde*kl

(replaces 5 characters of the string with '*' starting from the 6th character)

<< CALC.proper(String) © 1996-2013 InetSoft Technology Corporation (v11.4) CALC.rept(text, number_times) >>