Hi folks -- I thought I would throw a few questions about string processing
together. I hope I haven't ignored very clear guidance on this...
1-- I am using a concat() command to add new strings onto an existing
string. I would like to add a carriage return into that concat command, but
when I tried *
*it didn't escape correctly -- it just added that exact
text into the string ... how would one stick a carriage return into the
text being concatted?
2-- Is there a help document somewhere that lays out clearly when single
quotes are used in handling strings and when double quotes? I have been
using both in various places, and that has worked OK but that feels
worrisome.
3-- Speaking of escape characters in general, is there a help document that
tells me other escape characters that I might need... like the ones to
create the escape characters themselves if I want to type them... etc?
thanks!
Eric
Hey Eric,
Hi folks -- I thought I would throw a few questions about string
processing together. I hope I haven't ignored very clear guidance on
this...
1-- I am using a concat() command to add new strings onto an existing
string. I would like to add a carriage return into that concat command, but
when I tried *
*it didn't escape correctly -- it just added that
exact text into the string ... how would one stick a carriage return
into the text being concatted?
Just hit the "enter" key to insert a carriage return in the advanced logic
editor or the label field. The form builder will handle it automatically!
2-- Is there a help document somewhere that lays out clearly when single
quotes are used in handling strings and when double quotes? I have been
using both in various places, and that has worked OK but that feels
worrisome.
Single or double quotes are both fine for string values. You can use either.
3-- Speaking of escape characters in general, is there a help document
that tells me other escape characters that I might need... like the ones to
create the escape characters themselves if I want to type them... etc?
We don't currently have documentation on that. What other characters are
you looking to use?
Thanks,
Amelia
···
On Tue, Oct 28, 2014 at 6:28 AM, Eric Stephan wrote:
thanks!
Eric
--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.