Sets the n-th character in string with the input, replacing previous value.
- Аргументы
-
index | index to be replaced |
input | single non-terminated character value to replace with |
- Предупреждения
- VME When index less than 0 or greater than string length
-
(Diag) VME When string is empty or greater than length of 1 (Retail) Calls 'string.Insert' except it replaces only the initial character
string str = "Hello World";
str[4] = "O";
>> 'HellO World'
proto void Print(void var)
Prints content of variable to console/log.
string str = "Hello World";
str[6] = "Test ";
>> 'Hello Test orld'