SRL Archive - OSR Help

Replace param info is wrong?


riwu

2012-11-13 03:56:08

Parameter of Replace:


Giving it the correct parameter results in an error:

I've to omit the TReplaceFlag param to make it work. I know i should use ReplaceWrap if i want to use the TReplaceFlag param but why is it that it is shown in the Replace function when it isn't actually accepted?

IsoMorphic

2012-11-13 05:08:28

Just do Replace(Text,FindStr,ReplaceStr)

Thats all you need to do
function Replace(Text, FindStr, ReplaceStr: string): string;

riwu

2012-11-13 05:17:07

From: fisherblue23
Just do Replace(Text,FindStr,ReplaceStr)

Thats all you need to do
function Replace(Text, FindStr, ReplaceStr: string): string;

I do know that, i'm querying why the param pop up shows the wrong info.

Le Jingle

2013-01-07 17:42:27

b/c it's added to simba without modifying/tweaking the original pascal method for appearance, afaik. same with copy, and possible other methods too?