tags:

views:

84

answers:

1

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
Lots of dodgy answers in that one, although the accepted answer is ok. Summary is to pick between stringWithFormat: and stringByAppendingString:
Paul Lynch
@Felipe: If you want to point out duplicates, use comments not answers - especially if you are adding no content on your own.
Georg Fritzsche
@Georg Fritzsche Alright! Thanks for the tip!
Felipe Fiali