Insert carriage return into string

can someone tell me how to insert chars like carriage return in to strings in Labview 6.1 ?
Thanks

under the string subpallette you will have the ability to use constants for carriages return, tab, etc. Also when on the front panel you can right click on any text indicator or control and select Codes Display. This will allow you to see the /n's. Hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor

Similar Messages

  • Insert Carriage Return into CLOB

    I'm creating a clob that will be sent via email as an attachment with errors that occur during a package run. How can I send a carriage return so that the lines in the attachment break up and are easier to read?
    This is what I have so far.
    LOOP
    gv_email_body:= gv_email_body ||
    'Amount'||err.amount
    ||'Vendor: '||err.description
    ||'Account: '||err.Acct
    ||chr(13);
    END LOOP;
    gv_email_body is my clob.

    I resolved myself, quite simple.
    chr(10)||chr(13)

  • Inserting carriage returns in a concatenated string

    Hi.....
    Does anyone know how to insert carriage returns within a concatenated string in a sql statement?
    i.e. Select 'John'||'Smith' from dual
    I'm trying to return:
    John
    Smith
    as opposed to John Smith
    Thanks,
    ~Christine

    As suggested chr(10) is what you need, but it's not carriage return, but line feed, carriage return is chr(13). See the difference :
    TEST@db102 SQL> select 'John'||chr(10)||'Smith' from dual;
    'JOHN'||CH
    John
    Smith
    TEST@db102 SQL> ed
    Wrote file afiedt.buf
      1* select 'John'||chr(13)||'Smith' from dual
    TEST@db102 SQL> /
    'JOHN'||CH
    Smith
    TEST@db102 SQL>                                                              

  • Inserting carriage returns in metadata when using fcsvr_client createasset

    Anyone know how to insert a carriage returns into a field when using fcsvr_client createasset? For example:
    ./fcsvr_client createasset paassetspot /dev/6/test.mov PAMD_CUSTNOTES="With \n line \n breaks"

    You can enter newlines as you type inline without variables; you just have to escape them to the shell.
    In bash, do:
    ./fcsvr_client createasset paassetspot /dev/6/test.mov PAMD_CUSTNOTES=$'With \nline \nbreaks'
    (The difference from your initial attempt is the dollar sign and the single quotes.)
    In tcsh, you could do:
    ./fcsvr_client createasset paassetspot /dev/6/test.mov PAMD_CUSTNOTES="With \
    ? line \
    ? breaks"

  • How do you insert a carriage return into a string ?

    Hi,
    I don't know how to insert a carriage return, \n ,into a string
    without the carriage return being interpeted. I am trying to build
    a string called queryVariable from the file below so that it equates
    to the necessary format for JDBC to execute the query.
    SQL script file:
    declare @x datetime
    select @x = null
    exec OSVBAK01...demand_dump PRODUCT,FULL,@x
    go     
    required string format for query:
    "declare @x datetime\n"+"select @x = null\n"+
    "exec OSVBAK01...demand_dump PRODUCT,FULL,@x";     
    void Readfile(String path, String infilename) {
    try {
    File file = new File(path + infilename);
         if (!file.exists()) {
         System.err.println("File not found");
         BufferedReader in = new BufferedReader
    (new FileReader(file));
         String str;
         String queryVariable = "";
         StringBuffer sb = new StringBuffer();
         while ((str = in.readLine()) != null) {
         sb.append("\"").append(str).append("\n\"")
    .append("+");                              
         in.close();
         queryVariable = sb.toString();
         System.out.println(queryVariable);
    } catch (IOException e) {
         System.err.println(e.getCause());
    queryVariable equates to the following after running the code above:
    "declare @x datetime
    "+"select @x = null
    "+"exec OSVBAK01...demand_dump PRODUCT,FULL,@x
    "+"go     
    "+
    Any assistance anyone could provide would be greatly appreciated.
    Thanks for your time,
    YAM-SSM

    Interesting... that would mean, of course, that in the case of concatenating string literals (outside of loops, as they say), the compiler is optimizing the code to avoid the need for using StringBuffers internally. Actually, it's good to know this, as I wasn't aware of this optimization.
    However, the post wasn't meant to be serious... I hoped that was obvious. Everyone's spouting off nearly the same thing for adding strings and line separators and whatever.

  • Remove Carriage return from string

    I have a free text area on a BSP (a form). When users type continuously in this area the text gets wraped. When the BSP is submitted it generates a sapscript form and the text area is printed on the form, but it has '##' which are placed where the text wrapped round. I would like to remove '##', so tried the following:
    replace all occurrences of '##' in text_area with ' '.
    This did not work as the '##' are not recognised presumably because they are some type of carriage return and not in fact has marks.

    If you dont have access to the class CL_ABAP_CHAR_UTILITIES, do this instead:
    DATA: crlf(2)   TYPE x VALUE '0D0A',
          itab      TYPE TABLE OF string,
          w_input   TYPE string.
       w_input = '<contains the text with the line feed.>'.
       SPLIT w_input AT crlf INTO TABLE itab.
    Regards Michael.

  • SQLLDR is inserting carriage returns.

    Hello. I tried searching but didn't find anything specific to my problem. I have a lot of Access tables to load into Oracle. All of the Access tables get appended into the same Oracle table. I'm exporting the Access tables to a excel spreadsheet then saving as a csv file. I run SQLLDR and it's giving me an error on a column saying invalid number. I switch the number field over to a Varchar2 and it loads. When I view the data in enterprise manager it has a square next to the last number. I did a simple replace on the character using replace(flow_rate,chr(13),'') and inserting that data into a number field again.
    I'd like to be able to skip this step in the future. Is there a way to skip the carriage returns when loading.
    Thanks

    Thanks for the reply. Yes I am. I have a bunch of Access files on a NT server. I open them and export the table to a xls file on my desktop. I open the file then save it as a CSV on the desktop. I then use WinSCP3 to move the file from the desktop to the UNIX box which is where the Oracle database is located on.
    It only puts the carriage return in the last column data is in. I have workaround using the replace function but I'd like to just fix the problem.

  • Carriage Returns in Message Area

    Hi,
    I am using a hidden field "P6_SUBMIT_MESSAGE" to store a message that gets generated from a PL/SQL process. I then use the following trick to display that same message in the message area at the top of my page
    Process success message
    &P6_SUBMIT_MESSAGE.
    How can I get carriage returns into this message. I have tried adding chr(10), chr(13) and even '<'br'>' in the PL/SQL process but no luck. If I use chr(13) and my P6_SUBMIT_MESSAGE is a Textarea (not a Hidden field) I can see the desired results in that text area but even then, the carriage returns are not propagated to the message area at the top of the page.
    Thanks

    I know this is not my thread but i just wanted to say, thanks scott! this works! i'm having the same problem as Robert and tried every possible way like he did with the ch(10) and < b r >... but did not realize to change the page item type, i had it as text area also. Now i changed it to display text (does not save state) and used < b r > for carriage return... it works like a charm!
    Thanks again,
    Marilyn

  • TEXT datatype in Stored Procedure and concat Carriage returns

    Anyone,
    I am trying to create a stored procedure that will allow me to grab a bunch of 255 Char records in a cursor and concatenate them together adding a carriage return after each row.
    Here is pseudo code would look like:
    CREATE OR REPLACE PROCEDURE myproc IS
       CURSOR c1 IS
          SELECT myVARCHAR_255_col
          From mytable
          where criteria = something
          rec c1%ROWTYPE;
          var_my_new_TEXT TEXT;
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1 INTO rec;
          EXIT WHEN c1%NOTFOUND;
            IF rec.myVARCHAR_255_col IS NOT NULL THEN
                var_my_new_TEXT := CONCAT(rec.myVARCHAR255_col, '%char(13)+char(10)%')
            END IF
       END LOOP;
       CLOSE c1;
    END;There is a bit more to code then this but most important issue is how to deal with TEXT datatype? Should/can it be RAW instead. And also how do I get a CARRIAGE RETURN into the body of the column of type TEXT.
    Thanks in advance,
    Miller

    Is there a specific reason for concatenating 255 characters at a time and returning it? This example may be of help.
    SQL> set long 500
    SQL> DESC MYTABLE
    Name                                      Null?    Type
    COL1                                               NUMBER(2)
    COL2                                               LONG
    SQL> select * from mytable;
          COL1
    COL2
             1
    This text is very long This text is very long This text is very long This text i
    s very long This text is very long This text is very long This text is very long
    This text is very long This text is very long This text is very long This text
    is very long This text is very long This text is very long This text is very lon
    g This text is very long This text is very long This text is very long
    SQL> select length(col2) from mytable;
    select length(col2) from mytable
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got LONG
    SQL> select length('This text is very long This text is very long This text is very long This text i
      2  s very long This text is very long This text is very long This text is very long
      3   This text is very long This text is very long This text is very long This text
      4  is very long This text is very long This text is very long This text is very lon
      5  g This text is very long This text is very long This text is very long') from dual;
    LENGTH('THISTEXTISVERYLONGTHISTEXTISVERYLONGTHISTEXTISVERYLONGTHISTEXTISVERYLONG
                                                                                 393
    SQL> R
      1  DECLARE
      2  V_VARIABLE VARCHAR2(4000);
      3  BEGIN
      4  SELECT COL2 INTO V_VARIABLE FROM MYTABLE;
      5  DBMS_OUTPUT.PUT_LINE(SUBSTR(V_VARIABLE,1,255));
      6  DBMS_OUTPUT.PUT_LINE(SUBSTR(V_VARIABLE,256,138));
      7* END;
    This text is very long This text is very long This text is very long This text
    is very long This text is very long This text is very long This text is very
    long This text is very long This text is very long This text is very long This
    text is very long Th
    is text is very long This text is very long This text is very long This text is
    very long This text is very long This text is very long
    PL/SQL procedure successfully completed.
    SQL> SELECT SUBSTR(COL2,1,255) FROM MYTABLE;
    SELECT SUBSTR(COL2,1,255) FROM MYTABLE
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected NUMBER got LONG

  • Carriage returns in Spotlight Comments - tip

    Because I could paste returns into the Spotlight comment window, I figured there was a way to place carriage returns into the window [without copying a return from TextEdit].
    ctrl-return works on my PowerBook
      Mac OS X (10.4.3)   Titanium PowerBook (15")

    The email is formatted poorly by the sender.
    The screen width for a PC is min 640x480, which is large enough to display the email with the extar carriage returns on every line.
    The  Blackberry has a much smaller resolution, even with smaller text (which you could try but I wouldn't count on).
    The BB removes extra CR/LF's (ie if you have three or four per line, it will only show one), but it isnt going to reformat the entire email.
    Especially since the email is generally formatted for a reason.
    The sender has not formatted the email (thatws an auto-reply email, right?) for small screens or mobile devices.
    If you open the email in outlook and then reduce the window size to 1/4 or smaller than you will see the exact same thing on the Outlook email...
    So, there is nothing you can do on the BB. Its the sender who needs to change their emails.
    Checked out my Blackberry FAQ's and Links to Needed Articles here
    http://darkeen.homelinux.com/index.php/Blackberryfaq

  • Regular Expression.  Select Statement.  Carriage Return

    Oracle 9i
    Using SQLPLUS
    I've read about regular expression and need some translation/explanation.
    I have a large table containing a varchar2 (free text) column. Users may have inserted carriage returns when they entered the data. I need to locate rows that contain carriage returns, select and display them. Later I'll need to update those rows to replace the carriage returns with a space.
    Can you assist with syntax. I believe use of a regular expression is required.
    Thanks

    for single characters like <CR> TRANSLATE() Doh. Never post at the end of a long day.
    As the other posters have pointed out, one-for-one single character substitution is normally done with REPLACE(), although TRANSLATE() also works. The more normal role for TRANSLATE() is situations where you want to substitute multiple characters, e.g.
    SQL> update <your table> set <your column> = replace (<your column> , chr(13)||chr(10), ' ');This substitutes a space for a carriage return and line feed combination.
    Cheers, APC

  • Split String value into internal table at Carriage return

    Hi All,
    I have given a string type context ( text edit  box ) to the user to enter the values. The data can have carriage returns also.
    My Requirement is that I want to split the data at carriage returns and store it in my tables.
    I tired with a constant value of '%CR_LF' as available in CL_ABAP_CHAR_UTILITIES but to no good result.
    Can the Experts suggest some solution?/??
    Thankx in advance.
    Regds,
    Srini

    Hi Srini,
    Have you looked at your string containing the text in the debugger to verify that you really have <CR>+<LF> (i.e. reflecting CL_ABAP_CHAR_UTILITIES=>CR_LF, which should be easily visible when looking at the hex codes of the string)? Maybe it's just a <LF> (i.e. CL_ABAP_CHAR_UTILITIES=>NEWLINE). Might be good to do a REPLACE first using a regular expression for identifying the line feeds and then doing the SPLIT.
    Cheers, harald
    p.s.: If you still cannot get it to work, provide some more details of what you're doing...

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • JTextArea will not display string with carriage return

    Hello,
    I am trying to display an XML file which i have converted into a string in a JTextArea to no avail. Any ideas how i can display the string in the JTextArea including the carriage return such that it still displays in the correct format?
    Your pointers and suggestions will be much appreciated.

    Antananarivo wrote:
    Hello,
    I am trying to display an XML file which i have converted into a string in a JTextArea to no avail. Any ideas how i can display the string in the JTextArea including the carriage return such that it still displays in the correct format?
    Your pointers and suggestions will be much appreciated.You haven't done the conversion properly.
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import java.io.IOException;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.WindowConstants;
    public class XMLTextArea {
        public static void main(String[] args) throws IOException {
            File f = new File("someFile.xml");
            BufferedReader br = new BufferedReader(new FileReader(f));
            StringBuilder sb = new StringBuilder();
            String nextLine = "";
            while((nextLine = br.readLine()) != null) {
                sb.append(nextLine).append("\n");
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            frame.add(new JScrollPane(new JTextArea(sb.toString())));
            frame.setSize(400,300);
            frame.setVisible(true);
    }

  • SQL Loader - Loading Text File into Oracle Table that has carriage returns

    Hi All,
    I have a text file that I need to load into a table in Oracle using SQL Loader. I'm used to loading csv or comma delimited files into Oracle so I'm not sure what the syntax is when it comes to loading a text file that essentially has one value per row and each row is separated by a carriage return. So when you open the text file, the records look like this:
    999999999 <CRLF>
    888888889 <CRLF>
    456777777 <CRLF>
    456555535 <CRLF>
    345688888 <CRLF>
    So each row is separated by a hard return and I need to tell sql loader that the hard return or next row is the next value to insert into the table. Below is an example of a control file I tend to use as a template for loading csv files but I need to modify it to accomodate this new structure.
    OPTIONS (DIRECT=TRUE,ROWS=100000)
    UNRECOVERABLE
    LOAD DATA
    INFILE 'C:\input.txt'
    BADFILE 'C:\input.bad'
    APPEND
    INTO TABLE TEST_TABLE
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    COLUMN_1
    How to I modify the control file above to use hard returns as the field/row delimiter for my text file?
    Thanks

    Hi there,
    Obviously my intention wasn't to post the same message 4 times....I pressed the "Submit Message" button but the submission hung and I pressed it a few times and finally it worked but it created several versions of my post. You need to allow users the ability to delete there own postings...I was looking for this option but didn't have it.
    Sorry

Maybe you are looking for

  • Does Not Sync, Stuck

    When I went to go sync my iPod, it shows up on the screen and the iPod seems like it is starting to sync. But then it doesn't and the screen on the iPod goes back the cord picture where it says "Connected_Eject before disconnecting." When I click syn

  • Why can i not access my itunes music that ive purches on my computer on my iphone 5?

    i can not sync my iphone 5 to my computer to access my already purchesed itunes music! i tried to buy itunes match using my credits on itunes but it will not allow me to do this with out the use of a credit card. im getting frustrated with the fact i

  • Hi, My Mac Book Pro 15'' sound is unresponsive.

       My macbook pro coincedently turned 2 years old today. However the sound is unresponsive. I am not able to tweak the sound higher or lower as the 'stop' symbol appears on the screen. Since it is not under warranty any longer I will have to pay the

  • Picture setting on netflix or other apps.

    So I got the 42TL515U TV yesterday and have been liking it so far, but one of the things that I am having problems with is changing the picture setting while I am using netflix. I can pull up the menu settings when I am on cable, composite, or HDMI i

  • 11g: Multicolumn pivot - help with query

    Hi everyone, My first attempt at posting here was not very successful. I have now read the rules, and done more homework. I'm fairly new to Oracle databases, but have some experience with MySQL and Postgres from earlier. First of all, here is an exam