How to interpret Line Returns in a text box

Hello,
I have a text file that contains several sentences that are tab delimited:
For Example:
The cat sat on the mat.   The dog sat on the cat.   [Where the two sentences are delimited]
My first objective is to read these two statements into two separate text boxes… and I can do this.
My second objective is to add a line return to each statement so that when in their respective text boxes they will appear as:
The cat sat                    The dog sat
on the mat.                    on the cat.
I don’t know how to do this.  Any ideas…?  Ideally I want to insert something like “/n” into the sentence so that LabVIEW can interpret it as a new/return line command when it outputs it to the text box.
Kind regards,

Here's one possible solution (note the string format display settings, LV 2010).
I use an array for the output for simplicity. You can index individual elements if really needed.
First we create an array of sentences (tab is delimiter).
Then, for each sentence, we create an array of words (space delimiter)
We reshape the array of words to two rows (pad if the number of words is odd).
We form the two line sentence using array to spreadsheet string with space as delimiter.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ProcessSentences.png ‏11 KB

Similar Messages

  • How to get rid of the main text box in the back of the page AND move things

    I usually work in Adobe Illustrator, Photoshop, and InDesign, but am creating two newsletter templates in Pages for a colleague, since it will be easier for her. But, for the life of me, I can't figure out how to get rid of the main text box in the back of the page that is driving me crazy. I just want a nice blank page that I can do whatever I want with. AND, I can't figure out how to select things so that I can move them, like shapes and text boxes. Some things seem to move fine, then other things just sit there. I am at the end of my rope!!!

    Hi, Dylan. Welcome to Discussions.
    If you're referring to the area where you just start typing when you open a new blank document, you can't get rid of it. But you also don't have to use it. You can insert text boxes and size and position them as you desire. Just be sure they're defined as Fixed on Page. When one is full and you want to continue it to another page (or to the side), click in the blank blue box on the lower right side of the text box. That will create another box and your overflow text will flow into it. Then position it where needed.
    Also, you can create a text box the width of the page and then set it for 2 or more columns.
    When you want to send something to the back and you may want to access it again later, just use the send backward command. If you send it all the way to the back, it will be behind the main text layer (where it will be safe from acvcidental movement) but you will have to click outside the work area and then drag the pointer to the object to select it.
    Hope this helps to get you started.
    Walt

  • How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?

    How do I drag an image or text box to the "workspace" off of my working file but where I can still see the image and text box for future use?
    When I drag the item off of the trifold that I am creating, it just disappears but I still want to use it.  I just need to move it out of the way to modify other portions of the document.
    thanks,
    C

    Add another page below the current one to use as a storage area. You can't use the grey area around the page for storing items you want to use later.
    Go to the Pages Menu>Provide Pages Feedback if you would like to request this feature be added in future versions.

  • I upgraded pages.  Now when I begin a new document I automatically have a text box.  How do I get rid of the text box so that it does not automatically appear.  What settings do I need to change?

    I upgraded pages.  Now when I begin a new document I automatically have a text box.  How do I get rid of the text box so that it does not automatically appear.  What settings do I need to change?

    Perhaps you are loading a template that has a text block already on it.
    You might try the blank template option and set that as your go to template in your preferences

  • How do i send hyperlink to a text box within the same page

    how do i send hyperlink to a text box within the same page on iweb

    It's called an anchor. It's often discussed in this forum.
    2 days ago : anchor
    Here's a search of the past year : anchors

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • How to put line break in the text

    Hi guys,
    This is a simple problem.i don't know how to concat a line break while creating a text.
    I am looping through the results of a query and want to form the text using the results.
    For each row of the resultset,I want to create a new line in the text i create.
    I was wondering how to put a new line in the text.
    I thought I can concat '\n' ,but it does not work.
    the code snippet in the procedure is :
    for c1_rec in c1 loop
    vMsg := ' There are ' || c1_rec.total ||
         ' documents of type ' || c1_rec.doc_type || '\n' ;
    end loop;
    Please give the solution.
    Thanks in advance.

    Thank you Mark.
    I tried your suggestion.But line break is not working in email.
    Here is how my code is
    in procedure 1 ,i create the message String as :
    for c1_rec in c1 loop
    vMsg := vMsg || ' ' || today_str || ' - ' || c1_rec.total ||
         ' Total inbound documents from : ' || c1_rec.target_value || CHR(13)||CHR10) ;
    dbms_output.put_line(' ' || vMsg);
    end loop;
    --here sending mail calling another procedure
    sendmail( '[email protected]' ,'[email protected]' , 'Test Subject ' , vMsg );
    In Procedure 2( i.e sendmail procedure )
    i am preparing email server connection from and to adresses .Then i am preparing and sending message as
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    conn:= utl_smtp.open_connection( EmailServer, Port );
         utl_smtp.helo( conn, EmailServer );
         utl_smtp.mail( conn, SENDER);
         utl_smtp.rcpt( conn, RECEIVER )
    mesg:= 'Subject: ' || SUBJECT || crlf ||
                   'Date: '||TO_CHAR( SYSDATE, 'Dy, dd Mon yyyy hh24:mi:ss' )||
                   crlf ||
                   'From:'||SENDER|| crlf ||
                   'To: '||RECEIVER || crlf ||
                   'Content-Type: text/html; charset=ISO-8859-1' || crlf ||
                   '' || crlf || MESSAGE ;
         utl_smtp.data( conn, mesg );
         utl_smtp.quit( conn );
    even now the mail we are getting is not having the line break.I am having line break in dbms output,but not in the mail.
    Is there any mistake how I am sending the mail.Or is there any other way we can put line break in the text
    Thank you.

  • How to display Error for a particular text box programaticaly

    Hello All,
    I have 5 text boxes in a form and I have a requirement where if user click on any of the text boxes then i need to pass the id to class A and show the error description related to that text box in faces message.
    I have created class A in which i need to pass the id and get the error description but the problem is that the error description is in array list so i have created list of type class B which contains description.
    Right now in class A I have :-
    id ||||||||| description <>
    it1-------1.Invalid number
    -------2.Number not in use
    -------3.Number is out of range
    it2------1.error1
    2.error2
    3.error3
    and so on.....
    *public class ClassA {*
    public String Id;
    public List<ClassB> desc = new ArrayList();
    *public ClassA() {*
    super();
    *public void setId(String Id) {*
    this.Id = Id;
    *public String getId() {*
    return Id;
    *public void setDesc(List<ClassB> desc) {*
    this.desc = desc;
    *public List<ClassB> getDesc() {*
    return desc;
    *public class ClassB {*
    public String Description;
    *public ClassB() {*
    super();
    *public void setDescription(String Description) {*
    this.Description = Description;
    *public String getDescription() {*
    return Description;
    How do I pass the id and get the description for eg:- If id is it1 then How would I show all the 3 errors in faces message on value change.
    Please Suggest.
    Thanks in advance.

    your case is not clear.
    but this link may help you
    http://mjabr.wordpress.com/2011/08/31/how-to-show-multi-lines-afmessage/

  • Text wrap for a paragraph: How to define the width of a Text box /  active text area? I simply need a longish text to wrap within the frame!

    Hello, I've been searching for a good while in the forums now, but have found no solution or real mention of the problem – I hope some of you can help.
    I want to very simply layout a text between scenes, a slightly longer text that wraps within the frame margins. Here's an example of how I want it to look:
    Now, I couldn't for the life of me get the Custom Text to behave like that, as there are no parameters to set for the width of the text area. The Text Size, yes, along with the Tracking, Baseline and all that, but the width of the text box, no. The above was created by customizing one of the other Text Generator presets that happened to be left aligned.
    However, this preset has a fade in/fade out transition, which I do not want. There's no way to remove this transition as it seems integrated into the Text Generator (meaning they are not really presets, but separate kinds of Text objects? Very silly.)
    So I am asking you: Is there any way to get the Custom Text generator to behave like that? Just a text paragraph as above. Below you'll see all I can manage with the diffferent Custom Text parameters. Any kind of repositioning and resizing of the text just changes the position and size of the frame – but the actual text items are just cropped off where they extend out of that frame. Apparently the bounding box for the text is just some default length, and I can't find any way to adjust the width. See below my different attempts.
    The same text pasted into a Custom Text generator clearly extends outside the frame:
    Here Transform just moves – or resizes – the video frame that the Text Box exists inside:
    The Crop gives similar results, and of course Distort doesn't get me closer to what I need, either. There should be simply a Text Box Width parameter to set somewhere, but if it exists they have hidden it very well. How do you do it?
    Thanks for any help, this is a silly problem, but one of now many trivial problems that amount to me growing quite dissatisfied with FCPX. Hopefully I've just overlooked something.
    All the best,
    Thomas

    Thomas...same kind of crap here.
    I used Custom Text - entered a sentence, hit return, entered another.
    Set to 72 pt.
    The default alignment is centred - I want left aligned text...the text start point stays at the centre of frame and the sentence runs off the edge of the bounding box.
    There is no settings in the Text or Title inspector dialog to correct that!
    Using Transform will not sort it!

  • How do you put rules around a text box ina pages layout template? The inspector tab seems to allow rules on top, bottom or both, but not on all four sides.

    How do you two format facing pages to appear as a single page for a photo spread?

    It seems you have one question in the title and another in the post.
    1. Select the text box. In the Inspector palettes Graphic tab choose Stroke. You can chose Line or Frame.
    2. See this discussion Double Page Spread?

  • How do I back-link to a text box, pop-up, or sidebar?

    I can make a hyperlink from a text box, pop up window, and sidebar to a bookmark, but can't make a return link to any of these? Is it just not possible, or did I miss something.
    Thanks.

    I don't know what you mean by "unique link/bookmark pairs." I believe all bookmarks are unique.
    You just said what I said.... Thanks for confirming.
    A bookmark needs a link to work. A link needs a bookmark to work. Those two things create a unique pair that work together. A & B. To B from A.
    Are you asking how to back-link or how to bookmark?
    You cannot create A & B and then expect the user to do: A ▶ B ▶ A
    If you want B ▶ A, you need to create another pair: C, D
    Put C next to B and D next to A, then the user can do: C ▶ D, which in effect takes them from B back to A.
    Now you have two unique pairs: A/B & C/D

  • Custom themes: How do I create & edit an auto-text box?

    Hello
    Continuing my exploration of custom themes
    I have now found out how to make text boxes editable (control-command-option-T, that was carefully hidden!) and am now struggling with creating and editing 'auto text' boxes (not sure what their real name is in Keynote-speak)
    1) Creating new text boxes:
    Let's take a simple theme like White. One of the Masters is Title + Bullets Left. Now let's assume I want to create two text boxes with bulllets - the existing on the left and another on the right. In PowerPoint it's pretty simple: highly text box; copy; paste; move & resize as needed. Well Keynote won't let me Copy so that's out. If I create a fresh Text box, I can mimick the indent levels, bullets, font attributes, etc. (long and painful) but it still won't work because it is not a placeholder text box (fixed size) but a regular text box (size depends on content).
    I'm sure I'm missing a trick!
    2) Edit auto-text boxes
    Again, take any theme, say White again; If I choose a Master with a set text placement, say Photo Vertical, there is very little I can do with it: I can change text attributes and box size, but I can't touch the number of indentation levels for example. Then again what defines a text box as been 'double click here to edit' from a regular placeholder?
    Overall I think I'm missing a whole editing 'avenue' regarding masters - Anyone care to guide me?
    Thanks!
    Message was edited by: Moscool - typos!

    You can set a text field to be multi-line and tick off the option to scroll
    long text to have it automatically wrap, but you'll have a problem with the
    first partial line, since form fields can only be rectangular. Another
    problem might be the lines themselves, since you'll have to use a font size
    that will fit them exactly, or it will look odd. I would suggest getting
    rid of those lines altogether. They are not needed when filling in the form
    electronically. It's a relic from printed out forms where people had to
    hand-write their answers.

  • I have never used my mac for desktop publishing before and am having some problems.  This sounds really dumb, but I can't figure out how to put a border around a text box.  Also, how do you edit the border, i.e. border color, thickness, etc. Help!

    I have never used my mac for desktop publishing before and am running into some real problems.  How do you put a border around a text box?  Can you edit the border - color, thickness, etc.?  Help!

    I think the best solution is to read Pages documentation, go to Help and you have a long list of options. Pages is capable of quite sophisticated things, some features are above Nisus or Mellel, so it is not so simple to summarize things in a few lines.

  • How to put a border around locked text boxes?

    I have a number of locked text boxes. I need to place a border (a box) around them. How do I do that?

    Govan,
    1. It's helpful to give a full and complete description of your problem when first posting in order to get a complete answer and avoid follow up posts.
    2. There's no need post the same answer twice.
    My answer: The stroke/line around a text box is all or nothing. If you want to eliminate the line between adjacent text boxes you'll have to draw a white line over the offending line to cover it up. Once this is done, select both text boxes and the line (using shift-click or command-click) open the Arrange menu and choose Group (or press Option-Command-G). This will keep the white line in place if the text boxes move.
    Good luck,
    Terry

Maybe you are looking for