%string = "hello my last character is: %";%lastCharacter = getSubStr(%string, strLen(%string)-1, 1);
Code: [Select]%string = "hello my last character is: %";%lastCharacter = getSubStr(%string, strLen(%string)-1, 1);
error, starting position and desired length must be >= 0
==>%string = "hello my last character is: %";==>%lastCharacter = getSubStr(%string, strLen(%string)-1, 1);getSubStr(...): error, starting position and desired length must be >= 0: ("",-1, 1)BackTrace: ->ConsoleEntry::eval==>echo($lastcharacter);
Code: [Select]==>%string = "hello my last character is: %";==>%lastCharacter = getSubStr(%string, strLen(%string)-1, 1);getSubStr(...): error, starting position and desired length must be >= 0: ("",-1, 1)BackTrace: ->ConsoleEntry::eval==>echo($lastcharacter);