# Loading changed API2 string functions

**URL:** <https://forum.xojo.com/t/loading-changed-api2-string-functions/74833>\
**Category:** Plugins\
**Created:** [March 14, 2023, 12:08am UTC](https://forum.xojo.com/t/loading-changed-api2-string-functions/74833 "2023-03-14T00:08:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [March 14, 2023, 12:08am UTC](https://forum.xojo.com/t/loading-changed-api2-string-functions/74833/1 "2023-03-14T00:08:58Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [March 14, 2023, 1:03pm UTC](https://forum.xojo.com/t/loading-changed-api2-string-functions/74833/2 "2023-03-14T13:03:27Z")

</div>

This should work:

```auto
REALLoadFrameworkMethod("Replace(Extends sourceString As String, substring As String, replacementString As String) As String")

```

---

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [March 14, 2023, 1:48pm UTC](https://forum.xojo.com/t/loading-changed-api2-string-functions/74833/3 "2023-03-14T13:48:58Z")

</div>

> [@William\_Yu](#):
>
> `REALLoadFrameworkMethod("Replace(Extends sourceString As String, substring As String, replacementString As String) As String")`

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