Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to midify string in function?


1 reply to this topic

michalvsoft

michalvsoft
  • Members
  • 5 posts

Posted 21 June 2006 - 15:46

Hi,

I want to pass string to function. Inside it i want to make some changes to the string and then return somehow changed string. Is there a way to do it, different from using global variable?
I know I can't return string value using 'return' statement. I was thinking of using pointers, but I didn't managed to make them work in a way I was wanting them to.

Thanks in advance.

michalvsoft

michalvsoft
  • Members
  • 5 posts

Posted 21 June 2006 - 16:01

I found it out:

You have to declare the parameter as BYREF;
ex.
prototype StrInvert( BYREF STRING );