really basic question, I have a string to generate as SQL statement that I need to run through a loop to add all the relevant criteria. How do I concatenate the statement.
+1
A:
Take a look at this post:
http://stackoverflow.com/questions/510269/how-do-i-concatenate-strings-in-objective-c
Felipe Fiali
2010-05-11 13:49:50
Lots of dodgy answers in that one, although the accepted answer is ok. Summary is to pick between stringWithFormat: and stringByAppendingString:
Paul Lynch
2010-05-11 13:52:31
@Felipe: If you want to point out duplicates, use comments not answers - especially if you are adding no content on your own.
Georg Fritzsche
2010-05-11 13:56:56
@Georg Fritzsche Alright! Thanks for the tip!
Felipe Fiali
2010-05-11 14:36:39