Abraxas,
in your example, all strings are local.
[code=thinbasic]
thinBasic_ParseSTRING String1
[/code]
Get a string from the script and make a local module copy.
The same in
[code=thinbasic]
thinBasic_ParseSTRING String2
[/code]
To return a modified string you can use the function name. Declare function AS STRING, define in your LoadLocalSymbols something like:
[code=thinbasic]
thinBasic_LoadSymbol "TBZZ_String2String" , %thinBasic_ReturnString , CodePtr(Exec_TBZZ_String2String ), %thinBasic_ForceOverWrite
[/code]
and inside your function something like:
[code=thinbasic]
FUNCTION = String1
[/code]
or whatever you want to return.
_________________________________________________
Instead, if you want to have a parameter passed BYREF to your module function, please have a look at this post here: http://community.thinbasic.com/index...sg4452#msg4452
If you need more info, let me know and I will give all the info you need. I'm going home from work right now so please excuse me if I will reply a bit later.
Ciao
Eros
Bookmarks