A carriage return within a string

Hi all,
Have a string which oracle is reading from Foxpro but ORACLE
doesn't recognize + CHR13 + which means new line.
" blah blah + CHR13 + blah "
Used + /n + but that isin't working either...Any ideas?
" blah blah " /n " blah "
S Emberg

Chk if something on these line will help U....
SQL>SELECT REPLACE('MY STRING',' ',CHR(10)) MY_STRING FROM DUAL;
MY_STRING
MY
STRING
Ashok

Similar Messages

  • Numbers ought to keep check box that allows carriage return within a cell universally within a table

    Apple really fell asleep at the switch when releasing its latest version of Numbers 2013 (3.2), because it ignored the universal learning styles of human beings who have used the software in earlier releases and seemed to change features with little consideration for the community as a whole.
    For example, why would you delete the feature that allows a user to turn-on or turn-off the "carriage return within a cell".  It seems smart of them to add the abilityt to simply press the Option key and hit return at the same time to allow a carriage return within a cell, but why would you DELETE the feature that allows returns within a cell universally within a table? 
    And then the Inspector got completely revised.
    Time saved in creating technologies gets eaten up in having to relearn technology every time a new release is created that doesn't build on the previous release very well.

    Adamo,
    You are complaining to fellow users.  It is best to post your feedback to Apple using the menu item
    "Numbers > Provide Numbers Feedback"

  • Can the carriage return within a variant be read as the terminatio​n condition for VISA READ?

    Hi guys, I am trying to read a variant data using VISA READ. The VISA READ is set to terminate reading when it sees a carriage return.
    Is there a chance that for the CR "encapsulated" within the variant be read by the VISA READ, and cause it to terminate?
    Cheers!
    Solved!
    Go to Solution.

    Since with the Flatten to String you are basically sending a binary representation of the data, you are going to have problems if you have the termination character enabled since byte 13 would be part of perfectly valid data and not just represent the end of a transmission.
    What you might want to do is disable the termination character.  Of course now you don't know how many bytes to read.  So prepend your message to write with the number of bytes that are a part of the message (string length).  You may want to use two bytes, (one byte would only give you messages up to 255 characters in length.)
    Now on your reading end, read 2 bytes, convert them to a number and feed that number in the next VISA read which will then read that many bytes.
    For examples, look at the TCP/IP read write examples in the example finder and you'll see how they send a message with 4 bytes to tell how much data makes up the rest of the message.

  • How to put a carriage return in a String

    I am creating an error message on my class which is called and displayed on my JSP page.
    In my string I want it to do a Carriage return. I used a \n however it just ignores it when displayed in JSP using scriplets.
    Class declaration:
    -- Want this line to start on the next line..
    /** Used for the Error message for a text box. */
    private final String TEXTBOX_ERROR_MSG = "\n NOTE: The text box characters left count may not be accurate.";
    Used in getDBErrors() method:
    --errors is an array of error records displayed in the JSP
    if(this.notes != null && this.notes.length() > 4000)
         errors.add("Notes Tab: Notes section cannot be greater than 4000 characters." +  this.TEXTBOX_ERROR_MSG);
    JSP Page code:
    --Get the list of Errors from the class
    List pbrDBErrors = editBean.getDBErrors();     
    -- Display errors:
    for(int l=0; l<pbrDBErrors.size(); l++)
    %>
    <li>
        ----------- Display ERROR Message Here
        <%= (String)pbrDBErrors.get(l) %>
    </li>
    <%
    } %>++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    All the code works great - Its just the TEXTBOX_ERROR_MSG is displayed on the same line as the rest of the message and it scrolls off the page.
    How do it get it to do a cariage return?? \n does not seem to work.
    Thanks

    I learned something new today.. I guess I can go home :)
    I am creating an error message on my class which is
    called and displayed on my JSP page.
    In my string I want it to do a Carriage return. I
    used a \n however it just ignores it when displayed
    in JSP using scriplets.
    Class declaration:
    -- Want this line to start on the next line..
    /** Used for the Error message for a text box.
    private final String TEXTBOX_ERROR_MSG = "\n NOTE:
    The text box characters left count may not be
    accurate.";
    Used in getDBErrors() method:
    --errors is an array of error records displayed in
    the JSP
    if(this.notes != null && this.notes.length() >
    4000)
    errors.add("Notes Tab: Notes section cannot be
    ot be greater than 4000 characters." +
    this.TEXTBOX_ERROR_MSG);
    JSP Page code:
    --Get the list of Errors from the class
    List pbrDBErrors = editBean.getDBErrors();     
    -- Display errors:
    for(int l=0; l<pbrDBErrors.size(); l++)
    %>
    <li>
    ----------- Display ERROR Message Here
    <%= (String)pbrDBErrors.get(l) %>
    </li>
    <%
    } %>++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ++
    All the code works great - Its just the
    TEXTBOX_ERROR_MSG is displayed on the same line as
    the rest of the message and it scrolls off the page.
    How do it get it to do a cariage return?? \n does not
    seem to work.
    ThanksThanks the <br> worked great....

  • Carriage returns within an appointment

    Is there a way to modify iCal so that when you want to create a new line within an appointment you can use Return rather than have to type Option-Return? I moved over from Palm Desktop (because of its instability) and never had to use the option key while typing within an appointment. It's very annoying!

    The internal name of the field indicates its purpose - Summary. For longer, multi-line (with all the carriage returns you want) use the notes (description) field.
    AK

  • Removing Carriage Returns within a Textarea

    Hi,
    Just wondering if someone could please let me know how to remove carriage returns from a Textarea after submitting the page?
    Within my PL/SQL process, I have used both REPLACE and TRANSLATE on both CHR(10) and CHR(13) but unfortunately it stills comes out the other end as follows:
    Description :this
    is
    a
    testWould like it all on one line minus the carriage returns.
    Thanks.
    Tony.

    The code I showed works for me. Computations and processes work similarly except that in a process you have to save the value in session state whereas in a computation that's done for you. Show your code or put an example on apex.oracle.com if you can't get it to work and I'll check it.
    Scott

  • Can I preserve carriage returns in a string variable from SQL Server?

    I have an OLE data source that pulls data from sql server via a SELECT query.  One of the fields is an NVARCHAR(max) which goes into a string variable which is later used in an expression.  I am noticing that in the expression, carriage returns
    / line breaks in this field are being lost.  Does anyone know how I can preserve these in the expression?

    Thanks everyone for the suggestions.  I am certain there are both \r and \n in the database as when I print the field and then copy/paste to textedit to show the hidden characters, I can see both the CR and LF's.  
    I have implemented a workaround that is by no means elegant, but it gets the job done.
    I found that \r and \n will evaluate in an expression but if they are part of another string variable, SSIS escapes them. My workaround was to change my OLE_DB select statement (which fetches the custom SQL query) to explicitly change the hidden characters
    to '\r' and '\n' respectively:
    SELECT REPLACE(REPLACE([CUSTOM_SQL],char(13),'\r'),char(10),'\n')
    Then, in my SSIS expression, I de-escaped these characters:
    REPLACE(REPLACE(@[User::vAlertCustomSQL],"\\r","\r"),"\\n","\n")
    Now when the expression is executed, the SQL is formatted correctly and oddly placed comments in the query no longer break the query.  

  • 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.

  • XSL:FO: carriage returns within fo:block ?

    Im looking for a solution of the following problem: My XML Data contains a description field which maybe has some carriage returns in it. How can I display the Data without loosing the paragraphs?
    The output now is:
    Lorem ipsum sea ludus detracto ut, eros delicatissimi pro ut
    But I need this:
    Lorem ipsum sea ludus
    detracto ut, eros
    delicatissimi pro ut
    How can I do this? Thank you again for your help!

    Specify
    white-space-collapse="false"
    <fo:block linefeed-treatment='preserve' white-space-treatment='preserve'
    white-space-collapse='false'>
    http://xmlgraphics.apache.org/fop/faq.html

  • 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>                                                              

  • 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

  • Outputting XML carriage return in HTML via XSLT

    Hi,
    I have a scenario where I execute a View Object query in ADF to retrieve results from a particular table in the Database. I then iterate through the results in my Java managed bean and manually construct an XML file with all the appropriate tags. I then pass the XML file through a Transformer class in the Java bean based on an XSLT I have created to produce an HTML page. However I have an issue when it comes to handling carriage returns. One of the database table columns can contain carriage returns within its value but in the final HTML page the carriage returns don't have any effect and the text just displays on one line.
    In the database, the values are stored with the carriage return and in SQL Developer, Toad etc this can be seen e.g. Text1 Text2 Text3 Text4 will display on separate lines. In the XML, the carriage return seems to still be there as when I open the file my element which contains the carriage returns shows each part on a new line e.g. <textElement>Text1
                                                           Text2
                                                           Text3
                                                           Text4</textElement>     (The Text2, Text3 and Text4 all start on a new line at the beginning and there's no prior white space as shown in this post)
    The XML file in JDeveloper also shows carriage return arrow symbols where there is one.
    The HTML page just shows them as Text1 Text2 Text3 Text4 all on one line. Inspecting the source of the HTML shows that the carriage return is in fact there as it also displays as per the XML with the values on separate lines.
    Outputting the value from the View Object in Java to the log shows the value coming out like this - Text1 Text2Text3Text4, which is strange but I know the carriage returns are there so I'm not too fussed about this.
    I have tried escaping the characters in the Java by doing str.replaceAll("[\\r\\n]", ""); (but replacing the "" with &#xD; &#xA; or &x0A;) so in the XML it replaces carriage returns and line feeds with these escaped characters. However, when the XSLT parses the XML it doesn't pick these up and instead actually outputs these actual characters as they are e.g. Text1&x0A;Text2&x0A;Text3&x0A;Text4
    So I can confirm that the carriage return is carrying all the way through to the XSL but I can't help but think that maybe I need to do something in the XSL to process this somehow, e.g. doing the equivalent of the 'replace' in Java but I don't know what I need to search for in the XML and also what to actually replace it with..Do I just replace it with a </BR> in HTML?
    We also parse the XML using PDF and Excel XSL Transformer class and see the same results.
    Any help would be appreciated.
    Thanks

    That's a very commonly asked question.
    HTML doesn't preserve linefeeds, except for the <pre> tag.
    You'll have to replace those characters with <BR/> tags in the XSLT.
    Search the Internet for terms like "XSLT HTML LF", you'll find some XSLT sample templates to handle the replacement.

  • Carriage return in textarea - how do I check for and remove it???

    I have an html form that has a <textarea> element for user input. I work mainly with Java and some JavaScript. Since carriage returns are permitted in a <textarea> element, upon retrieving the value submitted, my Java and/or JavaScript variables contain carriage returns as well, making the values incomplete.
    For Example :
    String dataSubmitted = request.getParameter("formInput");
    <script language="JavaScript">
    var textValue = "<%=dataSubmitted%>";
    ....//do other stuff
    </script>When I view the source of my JSP page, the above statement of code looks like this:
    var textValue = "This is some text that
    I submitted with a carriage return";I'm putting the text submitted through this form into a mysql database, and when I pull up the values I find that it has recorded the carriage return as well. There is an actual symbol representing a carriage return in the db field.
    What I'd like to do is use some Java code to go through each character of the String and find and remove the carriage return, perhaps replacing it with an empty space instead. But how do I check for a carriage return in a String variable?
    Also, is there a way to use JavaScript to alert the user when the carriage return button is pressed when they're in the <textarea>?
    Any input is appreciated,
    Thank You,
    -Love2Java

    What I'd like to do is use some Java code to go through
    each character of the String and find and remove the
    carriage return, perhaps replacing it with an empty
    space instead. But how do I check for a carriage return
    in a String variable?The carriage return is represented by the \r. Generally there is also a newline, the \n. You can use String#replaceAll() to replace occurences of them by a space.
    string = string.replaceAll("\r\n", " ");
    Also, is there a way to use JavaScript to alert the user
    when the carriage return button is pressed when they're
    in the <textarea>?You can capture keys using the 'onkeypress' attribute. The keyCode of a the return key is 13. So simply catch that:<textarea onkeypress="if (event.keyCode == 13) alert('You pressed the return button.'); return false;"></textarea>The return false prohibits the linebreak being inserted. If you remove that, then it will be inserted anyway.

  • Carriage returns no longer available in Numbers

    I have just updated to the latest version of Numbers on my iPad following the update to iOS 5.  It appears that the new version has annoyingly lost the ability to insert a carriage return within a cell. The onscreen keyboard now diplays a "Next" key where the "Return" used to be.  I have tried every key combination on the onscreen and Mac bluetooth keyboard but cannot find how to insert a carriage return.  This is driving me nuts - can anyone help with this??
    Thanks

    In the previous version of Numbers i.e. before the iOS 5 update I could execute a carriage return by calling the on screen keyboard up.  However, the on screeen keyboard now has a "Next" key in place of a "Return" key which moves the cursor down to the cell below.  I have escalated this to Apple as I am sure this can't be intentional behaviour.

  • Carriage Return in DB Calculation

    Please excuse this novice question but I can't seem to find the answer on the boards or in help. I would like to do a simple calculation in a Database field that consists of combining Name, Address, CSZ, etc. However, I cannot seem to find where or how I insert/ force a carriage return within a calucation field. If there is a text function that works or something else: My example would be (RETURN being the question):
    'First Name'&" "&'Last Name' RETURN
    'Address' RETURN
    'City'&", "&'State'&" "&'Zip'
    Hope this makes sense. Thanks for your time and help.

    If you hit a return when typing a formula, nothing happens. But if you type the formula in TextEdit and paste it into the formula box, the returns will be there. The formula should look like this.
    'First Name'&" "&'Last Name'&"
    "&'Address'&"
    "&'City'&", "&'State'&" "&'Zip'

Maybe you are looking for

  • MRP run without one storage location

    Dear All, My client's requirement is they need to run MRP on plant level without considering one storage location stock e.g if a material is having stock of 10 in unrestricted with storage location 1104. Now when mrp is run for 100 quantity planned o

  • Getting Invalid Registry Object while uninstalling plugins programatically

    When a specific condition is hit (while the user is trying to open our perspective), we uninstall the plugins using the below code: Platform.getBundle(<Bundle name>).uninstall(); When we run this code on Juno 4.2.2, we are hitting the below exception

  • Copying sales document type

    Hi I want to copy OR nad define my own as zor how do i do it

  • How to disable the print option in A. Reader (in JavaScript)

    I need be able to disable the print option from JavaScript code. I know that the print option can be disabled in the "File > Form preferences > PDF Security" option in the main menu but i need to do this from a script into the document ( preferably i

  • Subcon using Stock Transport Orders

    Hi SAP Experts, We have a requirement for an Intercompany transaction wherein Plant A avails of services of a subcontractor who is Plant B. Plant A sends raw materials and the subassembly to Plant B. Then, Plant B produces the finished product and se