SubStrReplace(str, replace_with, start, length:=0);
doesn't work if start + length >= the length of the string
which should be perfectly legal for POL since its indexations are 1-based
var myString := "Hello, World!";
SubStrReplace(myString , "Hell!", 7, length:=6);
>> Would cause an error: "Length out of range"
This patch fixes that issue.
Made a small change or new addition to the POL Core that makes a difference? You can post the changes here in .patch or .diff file format, for our Dev team to screen and apply to the SVN!
Moderator: POL Developer
1 post • Page 1 of 1
- (764 Bytes) Downloaded 151 times