Can InfoPath interpret escape characters?

E

Elridge

I have the following JScript code inside a for loop (irbNumbers and
studyNames are variales that contain lists).

canDestroyList += (i+1) + ")\nIRB Number:\t" + irbNumbers(i).text + "\n" +
"Study Name:\t" + studyNames(i).text + "\n\n;

When I display this string using a XDocument.UI.Alert, the escape characters
are interpreted and the string is displayed as I intend. However, when I
assign this string to a field in my datasource and display it using an
expression box or a text-box (set to read-only) the escape characters do not
get interprested. i get a long continuous string, without any newlines (the
newline escape characters are not displayed though).

Is there a different escape character that I could use to solve this problem?
 
F

Franck Dauché

Thanks Anton. Should have paid more attention here...
Franck

Anton via OfficeKB.com said:
If you go to textbox properties and under the Display tab check "Paragraph
breaks", the newline characters will be properly interpreted [just tested
myself].
I have the following JScript code inside a for loop (irbNumbers and
studyNames are variales that contain lists).

canDestroyList += (i+1) + ")\nIRB Number:\t" + irbNumbers(i).text + "\n" +
"Study Name:\t" + studyNames(i).text + "\n\n;

When I display this string using a XDocument.UI.Alert, the escape characters
are interpreted and the string is displayed as I intend. However, when I
assign this string to a field in my datasource and display it using an
expression box or a text-box (set to read-only) the escape characters do not
get interprested. i get a long continuous string, without any newlines (the
newline escape characters are not displayed though).

Is there a different escape character that I could use to solve this problem?

--
Anton


Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/infopath/200509/1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top