Loading changed API2 string functions

Are we supposed to load functions differently now given here for example Replace is technically deprecated, and could eventually disappear.

ReplaceFp = (REALstring (*)(REALstring, REALstring, REALstring))REALLoadFrameworkMethod("Replace(source as String, substring as String, replacement as String) as String)");

So my question is how are we supposed to load the new variant for the one above so that one day plugin does not stop working if the old gets removed.

Thanks

This should work:

REALLoadFrameworkMethod("Replace(Extends sourceString As String, substring As String, replacementString As String) As String")
1 Like

Yes that works, thanks. I was to stuck on putting String. infront of it.