<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Oct 2017 16:20:00 Z</lastBuildDate><pubDate>4 Oct 2017 15:05:00 Z</pubDate><description>Hi Guys,&#13;
&#13;
hopefully you can help me, I have created a procedure in Objective C for iOS whereby i pass a string to the procedure and it replaces the ' character with a blank space. This is my code as below:&#13;
&#13;
void REPLACE_CHARACTERS(NSString* ORIG)&#13;
{&#13;
NSString *str = ORIG;&#13;
str = [str stringByReplacingOccurrencesOfString:@"'" withString:@" "];&#13;
return str&#13;
}&#13;
&#13;
How do i use the 'str' value back in my main project? it doesn't appear i can assign the returned value to a global variable.&#13;
&#13;
Any help is appreciated,&#13;
&#13;
Many thanks&#13;
&#13;
Ben</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure/read.awp</link><title>Return value from Objective C Procedure</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure-62858/read.awp</comments><pubDate>5 Oct 2017 16:20:00 Z</pubDate><description>Hi&#13;
&#13;
You should declare&#13;
&#13;
NSString* REPLACE_CHARACTERS(NSString* ORIG)&#13;
instead of void&#13;
&#13;
and it should work&#13;
&#13;
HTH&#13;
&#13;
King</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure-62858/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure-62858/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure/read.awp">Return value from Objective C Procedure</source><title>Re: Return value from Objective C Procedure</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure-62857/read.awp</comments><pubDate>5 Oct 2017 15:53:00 Z</pubDate><description>Call your procedure like this&#13;
&#13;
sReturnedString is string = REPLACE_CHARACTERS(sStringPassed)&#13;
&#13;
This is how I retrieve values …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure-62857/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure-62857/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62849-return-value-from-objective-procedure/read.awp">Return value from Objective C Procedure</source><title>Re: Return value from Objective C Procedure</title></item></channel></rss>
