Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2005

Tip: Looking for answers? Try searching our database.

Can InfoPath interpret escape characters?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Elridge - 30 Sep 2005 17:01 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.