How to append to the previous line in a text?

Hi,
Can we append a previous line in a text? That is, my program goes to the next line of text in one loop but I need to go back to the previous line and append to it in the next loop. How can I do that? Is there a way to go to a specific line or previous line ( like \n for next line)?
lakki

1. Instead of thinking about "going backwards" consider delaying "going forwards". Don't write the newline character(s) until you are sure you're really done with a line.
2. Instead of writing as you go along, put the output in a List<String>, so that you can edit it.

Similar Messages

  • Add a bullet correctly below the text in the previous line.

    Hi All,
    I know how to add bullets in a word doc, but I dont know how to set the range.listformat.leftindent property to match this particular reuirement i.e
    1.1.1.   some text 
               (add a bullet below s in some)
    normal text
    (add a bullet below n) 
    i.e check where start of the text is , in the previous line add a bullet right below this text dynamically

    Hi Apoorva,
    I'm not quite sure what your uiquirement is, seems that you want to insert a sub-level bullet below the previous paragraph. You can use this method to create a sub-level bullet in the word document.
    Range.ListFormat.ListIndent
    For example:
    Application app = new Application();
    app.Visible = true;
    Document doc = app.Documents.Add();
    Paragraph para= doc.Content.Paragraphs.Add();
    Range rng = para.Range;
    para = doc.Content.Paragraphs.Add();
    para.Range.ListFormat.ApplyBulletDefault();
    para.Range.InsertBefore("test1");
    para = doc.Content.Paragraphs.Add();
    para.Range.ListFormat.ApplyBulletDefault();
    //para.Range.ListFormat.ListOutdent();
    para.Range.ListFormat.ListIndent();
    para.Range.InsertBefore("test2");
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to keep unaltered the last line?

    Hi I am doing some last corrections in a book which is going to be in the next days published and I am not allowed to change the form of the pages. (The indexes at the end of book are already done). Thus by correcting some footnotes (making them shorter) the main text above also changes (the first line of the next page appears in the page I corrected the footnotes) and I cannot keep the previous form of the pages. How can I keep the last line of the main text unaltered so that the pages turn exactly at the same point like before?

    If I am understanding your issue correctly, it seems that you are trying to keep the length of each page's main content  unaltered so that the index could refer back to the correct page.  It sounds like the content in each page's frames are linked, so that they flow continuously.  Adding a page break (or a frame break) may be what you're looking for.  You'll find it under Type > Insert Break Character.
    I hope this helps.  And good luck with your book!

  • Emacs is displaying the first column of the line on the last column of the previous line

    The first column of my lines are being displayed on the last column of the previous line. This a very irritating glitch that I have no clue how to fix or even troubleshoot. (red bars were added using preview to hide personal info)
    I've downloaded MacPorts and reinstalled emacs:
    GNU Emacs 24.4.1
    Copyright (C) 2014 Free Software Foundation, Inc.
    GNU Emacs comes with ABSOLUTELY NO WARRANTY.
    You may redistribute copies of Emacs
    under the terms of the GNU General Public License.
    For more information about these matters, see the file named COPYING.
    I'm open to any suggestions on how to fix this graphical glitch.
    Much thanks
    Message was edited by: Conner_36

    Given that the Emacs for OS X works ok and the Emacs shipped with OS X works it would seem to be some issue with MacPorts and their version.
    Totally unfamiliar with MacPorts so have no idea how the program gets compiled,what libraries it is using and what if any config settings are needs or set so I'm afraid I won;t be much help there.  That you are on a MBP with a retina display may be part of the problem.
    So with the setup you have now, hardware and software including OS,  it was working and then just like that it stopped? Something much have changed around the time it stop working if you can think back to then it might help you resolve the problem.
    As you are doing programming can i assume you have Xcode and the command line tools installed? If not how do you compile your code? The reason I ask is compiling Emacs from there GNU source is not all that difficult. It might be worth trying that.
    One last thing given that the two other versions of Emacs displayed the file OK this strongly suggests the problem is not in your .emacs file or your environment however as I wrote I am not familiar with MacPorts so it is possible there is another config file messing you up. As a test for this create a new user or log in as the Guest user (this is best as you;re guaranteed the environment is clean) and look at the file in question in MacPorts Emacs. If it displays OK then there is something in your environment causing this, If it messes up  even in the new user then I'd say ditch MacPorts..
    regards
    <edit>
    Just to rule out init files  if you start emacs with the -q(minus que) flag the .emacs file is not read in, if you use  --no-site-file it will not load the site file if it exists.
    I'd try running the MacPorts emacs with those two flags to see f anything changes.

  • Before the recent updates to Firefox, clicking on the back button always brought me back to the same place on the page where I had been, but now it brings me to the top of the page. How do I restore the previous feature?

    Before the recent updates to Firefox, when I would go to another page in the same window and then clickon the back button, Firefox used to bring me back to the same place on the page where I had been, but now it brings me to the top of the page, meaning that I have to laboriously scroll down to the old place. How do I restore the previous feature?

    That change was made in Firefox 4, 6 months ago.
    Click-hold the unified Back / Forward button <br />
    or <br />
    right-click it to get the Back / Forward history for that tab.
    Or install this extension to get the old "drop-marker" button restored. <br />
    https://addons.mozilla.org/en-US/firefox/addon/backforedrop/

  • How Do I Configure the PFI Lines as input in PXI 6713 module

    Hi,
    I have PXI 6713 module in my PXI 1044 chassis. I have configured PXI 6713 module to geneate certain analogue signals to my board.
    Board inturn process this analogue signal and responds back the status signals through a status register on the board. In my application,the status bits in status register of  the board are mapped to the PFI 0:3 bits on PXI 6713 module ( pins 11,10 , 42 and 43).
    My query is how do i configue the PFI lines as input in PXI 6713 module to read these status bits ??
    May be below explanation could give you little bit more information w.r.to my query.
    When i use NI USB - 6008    module to read the same bits , since this device has 12 digital I/O lines, i could able to read the status bits in to the last 4 digital lines by configuring the those digital lines as input.
    In PXI 6713  module i have only 8 digital lines. These 8 digital lines i have used to send the digital signals to the board. I am left with no digital I/O lines. Hence i couldn't use these digital lines. I am left with only one option to use. Theya re PFI lines. Moreover the status bits in the pin out of board are mapped such that the bits can be read through the PFI lines.
    I am wondering do we have any example code to use  inorder to read these status bits on the board using the PFI lines.
    Please let me know if you need additional information to help me out.
    Thanks.
    Solved!
    Go to Solution.

    Hello There,
    When using the PFI pin as an input, you can individually configure each PFI for edge or level detection and for polarity selection.  This PFI information can be referenced in the DAQ Analog Output Series Manual on page 6-1 (http://www.ni.com/pdf/manuals/370735e.pdf).  Unfortunately, the PXI-6713 PFI lines are only capable of timing input and output signal for AI, AO, or counter/timer functions.  The option of creating static DI from the PFI lines is not available for the PXI-6713. However, some cards have this capability.  Newer National Instruments products with PFI lines have the option of setting PFI lines as:
    Static Digital Input 
    Static Digital Output
    Timing Input Signal for AI, AO, DI, DO, or counter/timer functions 
    Timing Output Signal from AI, AO, DI, DO, or counter/timer functions
    (http://digital.ni.com/public.nsf/allkb/14F20D79C649F8CD86256FBE005C2BC4)
    When set as static DIO, the PFI lines are assigned to a different port (eg. PFI0-7 is Port1).  More details about this can be referenced at:
    http://digital.ni.com/public.nsf/allkb/DA2D3CD0B8E8EE2A8625752F007596E1
    http://digital.ni.com/public.nsf/allkb/862567530005F09E8625677800577C27
    Regards,
    Roman Sandoval | National Instruments | RF Systems Engineer

  • How can I set the default line height?

    Greetings,
    I have a report that displays observed behavior in a list format like the one below:
    Behavior Observed:   
        Withdrawn           
        Happy
        Sad
        angry
    There are 5 responses as to the severity of the behavior or it is left blank if the behavior was within normal limits.
    So the output would look like this:  
    Behavior Observed:   
        Withdrawn            (mild)
        Happy
        Sad                      (moderate)
        angry
    The problem is that when this report was designed the details sections were not uniformy formatted and the spacing between data elements is hard to follow from the label to the data field.  I tried to set the details to be uniform by selecting "Arrange Lines",  however when I do this, the data is displayed too close horizontally.  So my question is how do I set the default line height for each field so that they are uniform in distance from each other but not too close due to the font height?
    Does this make sense?
    Thank you,
    Kevin

    I'm confused... How are you associating line height with horizontal field spacing???
    If you have this...
    Behavior Observed:     Severity:
    Withdrawn          (mild)
    Happy
    Sad               (moderate)
    angry
    But want it to look like this...
    Behavior Observed:
    Withdrawn (mild)
    Happy
    Sad (moderate)
    angry
    all you have to do is create a concatenation formula. Something like this...
    {TableName.BehaviorObserved} & " (" & {TableName.Severity} &")"
    Sorry if I've misunderstood what you are trying to do.
    Jason

  • I HAVE AN IPHONE 5S AND WANT TO USE SOFTWARE 7.0.2 BECAUSE IT IS COMPATIBLE WITH MY VEHICLE FOR UCONNECT. I CURRENTLY HAVE SOFTWARE 7.0.3 ON MY DEVICE. HOW WOULD I GET THE PREVIOUS SOFTWARE BACK ON MY PHONE

    I HAVE AN IPHONE 5S AND WANT TO USE SOFTWARE 7.0.2 BECAUSE IT IS COMPATIBLE WITH MY VEHICLE FOR UCONNECT. I CURRENTLY HAVE SOFTWARE 7.0.3 ON MY DEVICE. HOW WOULD I GET THE PREVIOUS SOFTWARE BACK ON MY PHONE

    Forum Tip: It is generally considered inappropriate to type all in uppercase letters in Internet discussions, as text that is typed all in uppercase is by convention considered to be shouting.  Uppercase is also more difficult to read, so please use all uppercase sparingly and only when you really mean to shout, which we hope you won’t need to do here .
    Regards.

  • How do I remove the previous owner's Apple ID from my 2nd hand iPhone, and replace it with my Apple ID?

    How do I remove the previous owner's Apple ID from my 2nd hand iPhone, and replace it with my Apple ID?

    settings - appstore - view id - log out and log in with your id.

  • How can i remove the previous icloud acount from my iphone4?

    I recently purchased a second hand iphone4 not jailbroken and i already restored it to factory settings but i can't log in to icloud using my account because it states that  "The maximum number of free accounts have been activated on this iPhone". How can i remove the previous icloud acount from my iphone4? Hope someone could help me on this. Cheers! :)

    Hi,
    My dad gave me his old iphone as he got an upgrade. I can't seem to change his icloud account to mine. I'm getting his updated calender and his mail - and there seems to be some confusion between both our accounts. He seems to be acquiring some of my contacts - some of which have names which have led to some probing questions... So basically this needs to be sorted out! How can i delete his account from the iphone but not his whole icloud account? he would not be happy if i did this...
    Sophie

  • How can I print the "number lines" with the code in Visual Studio?

    How can I print the "number lines" with the code in Visual Studio?

    Hi BillionaireMan,
    What about your issue now?
    If you have resolved it, you can share the solution here, which will be beneficial for other members with the same issue.
    If you did not, please tell us more information,we will try my best to help you.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version.

    I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version??

    Look in your Applications folder.  If your system behaved as expected, you should have an iMovie 9.0 folder in your Applications folder.  Apple moved the old version there as even they suspected the new versions was a train wreck.

  • How can I restore the previously bought apps after I have formatted my computer without backing up any of my files for iTunes?

    As titled.
    I bought many apps from iTunes at the end of last year, and then my computer had got problem that I had to format and reinstall everything.
    I just want to know how can I restore the previously bought apps once if I forgot to backup any of my files on the computer??
    Would be really grateful if someone can show me how to. Thanks!!
    FYI: At that time I was using iPad 1 and the OS was still 3.1.x. Now I am using iPhone 4 and would like to restore the apps at least those that are compatible to my phone.

    How to redownload purchased apps from the App Store

  • Is iTunes 11.1.5 compatible with Mac OSX 10.6.8? If not how can I restore the previous iTunes version?

    Problem: Recently when I open iTunes it doesn't work; the little pinwheel just keeps spinning.
    I have tried leaving it on, as suggested by another user, for over 12 hours. I didn't work.
    I think the new iTunes version, 11.1.5, is not compatible with the operating system; Mac OSX 10.6.8. If this is so, how can I restore the previous iTunes version?

    You need to be updated to iTunes 11.2.2.
    You might want to consider running the combo updater over your install to refresh your files.
    Combo updater: Mac OS X 10.6.8 Update v.1.1 - 1.09 GB
    http://support.apple.com/kb/DL1399
    After running the combo updater, select Software Updater and update iTunes.
    If iTunes fails to open after updating, hold down the Option key when launching iTunes. It will ask you to locate your iTunes Library.
    Note: I've seen users with their iTunes Library on an external drive spin like this when the drive was failed to be seen in Disk Utility. Run Repair Drive on the external drive to fix this issue.

  • How can I search the last line in an internal table?

    How can I search the last line in an internal table?
    With a describe?? If it is , how can I do that?
    Thanks!!

    Hi shilpa,
    it seems to be you are NEW to SDN. welcome. if you want to get solutions to your Questions, you have to post a NEW thread.dont use the existing thread to post your question.
    any way i am giving you the solution for your question
    LOOP AT ITAB WHERE F1 = <SOME VALUE>
                       F2 = <SOME VALUE>.
    ENDLOOP.
    IF SY-SUBRC = 0.
      ITAB WILL HAVE THE LAST RECORD which satisfying the given criteria in WHERE clause of LOOP.
      write itab <--this ITAB will have the last record.
    ENDIF.
    regards,
    Srikanth.
    Message was edited by: Srikanth Kidambi

Maybe you are looking for

  • Windows 7 support  UEFI

    When looking at what Macs got *+official support Windows 7+* Pivots on EFI (no support) or UEFI 2.x (supported) http://support.apple.com/kb/HT3920 Same was true with with Vista 64-bit. http://support.apple.com/kb/HT1846 Apple adopted Intel's EFI in 2

  • Transport order

    WE have explored in our system that there is no scope of validation in the system that no duplicate bill passing can be done to transporter against each excise invoice *** challan . So we want a slolution which leads for creation of transport order a

  • 3310 predictive text problems

    As an older user of a fairly old phone I was comfortably letting mobile phone use pass me by until my children persuaded me that I had to learn to text. I have got the basics OK but no matter what I do the predictive text on my Nokia 3310 just seems

  • 10.8.3 hdmi fix?

    Just installed the new update as i was under the impression that it would fix the poor dp - hdmi quality. After installing there is no change to the screen display. I still only get the 1080p option compared to running the rgb cable. have i missed so

  • SAP B1 client Disconneceted due to Dmp file creation

    While making sale order or invoice in sap client ,it creates a dmp file in server frequently . Then the client got disconnected from the session, when i create a sales order or invoice (when delivery date or document date changed) for the customer to