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?
Franck Dauché - 30 Sep 2005 17:15 GMT
Hi,
This is by design. Textboxes do not allow formatting. In your case, you
may want to look into Rich Text box. But , fiiling a Rich Text box by code
will require you to look into appendChild. To get started, look at:
http://www.mcse.ms/archive180-2005-3-1490977.html.
Hope that it helps.
Franck Dauché
> I have the following JScript code inside a for loop (irbNumbers and
> studyNames are variales that contain lists).
[quoted text clipped - 10 lines]
>
> Is there a different escape character that I could use to solve this problem?
Anton - 30 Sep 2005 18:52 GMT
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).
[quoted text clipped - 10 lines]
>
>Is there a different escape character that I could use to solve this problem?

Signature
Anton
Franck Dauché - 30 Sep 2005 20:11 GMT
Thanks Anton. Should have paid more attention here...
Franck
> If you go to textbox properties and under the Display tab check "Paragraph
> breaks", the newline characters will be properly interpreted [just tested
[quoted text clipped - 14 lines]
> >
> >Is there a different escape character that I could use to solve this problem?