ID:166408
 
I've been wondering howto find a return in a message. The only way i have found is by using text2ascii() that using an if statement to figure out if the ascii is 10. Any other way to find a return?
I think the ascii way will work. I don't know of another way.
In response to Rockinawsome
I usually make macros for Carriage Return and Linefeed, and then the two combined.

#define Cr ascii2text(13)
#define Lf ascii2text(10)
#define CrLf ascii2text(13) + ascii2text(10)
#define HasReturn(x) ( findtext( x, Cr ) || findtext( x, Lf ) || findtext( x, CrLf ) )


Something like that.
findtext(msg,"\n")