Delete # in string

Hi,
I have used below code for notes field in the layout:
<thtmlb:textArea cols = "164"
rows = "5"
height = "300"
width = "100%"
text = "//NOTES/NOTES"
disabled = "FALSE" />
To retrive the above text i am using below code:
CALL METHOD lr_property_notes->get_property_as_string
EXPORTING
iv_attr_name = 'NOTES'
RECEIVING
rv_result = lv_notes.
Now in lv_notes at each line break i am getting ## and each paragraph break i am getting #### in debug mode.
I have tried to use replace and translate to remove ## but unable to remove them.
If i serach the string with # it is not identifying.
Any help in this regard is highly appreciated and rewareded.
Azaz.

Hi
In webUI for notes text
each new line will be treated as # in teh back end
for example
if u have teh text in notes tab as
hi how r u
iam fine
wat about u
teh fm or teh methods which read this text give u text as hi how r u#iam fine#wat abt you
so when u r printing that in pdf/smartform it will prinbt without #...so dont wory..only in back end or in debug oit will show like that....if u print same in UI /smarform/adobe form , it will not show #

Similar Messages

  • Problems deleting a string from an external file.

    hi!
    I am working on a program but am having problems deleting a string of information from an external file. The code I have managed to do only seems to be deleting the surname. The rest of the string remains and the Surname from the string bellow the one that should have been deleted moves to where the surname that was just deleated was.
    this is the code snippet that should be deleting the string:
              System.out.print("Please enter the last name of the contact: ");
              last_name = dataInput.next();
              int z = 0;
              for (int i=0; i < number_of_records; i++)
                        if ((last_name.compareTo(lastName)) < i && (last_name.compareTo(lastName[i]) > i))
                                  z = i;
              for (int i = z; i < number_of_records; i++)
                        lastName[i] = lastName[i+1];
    Anyone got any ideas why its not deleting the whole string?
    the extrenal file is set out like:
    surname,,first name,,phone number

    I don't think you have given enough information to answer this question completely; however, here is my guess:
    The code that appears to be doing the "deleting"
    for (int i = z; i < number_of_records; i++)
        lastName[i] = lastName[i+1];
    }is only acting upon the lastName array.

  • Deleting a String

    Hi, 
    Could anyone help in writing a batch script that will copy only the current date's files from a network shared directory to the local directory and delete the string "_wav " from all those file names of that folder.
    Thanks in Advance
    Kaly

    Could anyone help in writing a batch script that will copy only the current date's files from a network shared directory to the local directory and delete the string "_wav " from all those file names of that folder.
    Sorry, we don't do scripts on demand. Have a look at robocopy.exe /? and at
    del /? to get some guidance how to do such things.

  • I recently had a friend pass away and wanted to grab the photos and read the imessages we exchanged, but i deleted the string.  is there anyway to recover this imessage stream?

    I recently had a friend pass away and wanted to grab the photos and read the imessages we exchanged, but i deleted the string.  is there anyway to recover this imessage stream?

    There are two methods to recover deleted imessages.
    1. Restore them from a previous iTunes or iCloud backup.
    iOS: How to back up and restore your content:
    http://support.apple.com/kb/HT1766
    <Link Edited by Host>

  • HT3529 New 7.0 version update changes the way text messages are presented.  In the new version, I cannot figure out how to delete individual texts.  I can delete entire strings of messages, but I want to delete old texts, but keep the recent texts

    The new version of the software for my iPhone 4 changed the way text messages are managed. 
    I can no longer delete individual texts from a text "conversation."  I also have not figured out how to forward texts, which I was able to do in the prior version.
    Anyone know a way to edit out individual messages without losing the entire string?
    Anyone know if there is a way to forward messages?

    When you have the conversation open, if you tap & hold on a message bubble, you should get a new menu pop-up.  It should have 2 options "Copy" and "More..."  If you select the "More..." option it will then let you select one or more message bubbles and delete the selected ones by hitting the trach can icon in the lower left corner.  As for forwarding, you probably just select the "Copy" option, then paste the contents into a new message...

  • Take and delete a String from another String

    I have original input string= 111100001111
    I need to Take for example the least 4 bits .... Output= 1111
    and to be removed from the original input string so the original input string= 11110000 
    I am trying to make a generic one but the point is that I can not delete subset that I take from the original input String.  
    How can I take and delete from a string in the same time? 
    Solved!
    Go to Solution.

    Something like this?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Split String.png ‏13 KB

  • Help with deleting multiple strings from file.......

    I am trying to delete the same string that may appear multiple times in the file. Here is the output to the screen. Here is the code. I have been researching the delete method it says that I have to start at an index position in the string but how would I find out where the multiples strings reside in the file? I am getting the feeling that it won't work for my purpose..???? I am trying to delete all ot the strings "a string of data3" from the file.
    Output
    C:\TestRead>java StringDelete
    Temp String file_data-------- a string of data3a string of data2a string of data
    1a string of data3a string of data2a string of data1a string of data3
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data3
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data2
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data1
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data3
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data2
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data1
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    String toDelete-------- a string of data3
    Just A Blank Line
    Just A Blank Line
    Just A Blank Line
    Code:
    import java.io.*;
    public class StringDelete
    public static void main(String [] args)
    try
    FileInputStream fis = new FileInputStream("TestFile.txt");
    DataInputStream in = new DataInputStream(fis);
    StringBuffer file_data = new StringBuffer();
    while(in.available() > 0)
    String temp = in.readUTF(); // read in a string from the file
    file_data.append(temp); // append it to the buffer
    System.out.println("Temp String file_data-------- " + file_data);
    System.out.println("Just A Blank Line");
    System.out.println("Just A Blank Line");
    System.out.println("Just A Blank Line");
    boolean keepGoing = true;
    while(keepGoing)
    String toDelete = file_data.substring(0, "a string of data3".length());
    System.out.println("String toDelete-------- " + toDelete);
    System.out.println("Just A Blank Line");
    System.out.println("Just A Blank Line");
    System.out.println("Just A Blank Line");
    if(toDelete == null || toDelete.equals("") )
    keepGoing = false;
    else
    file_data.delete(0,"a string of data3".length());
    catch(IOException e)
    e.printStackTrace();

    Here is the output. I am trying to get each part to work before I go on to the next part that is why some code is commented out.
    I need help to know why string "a string of data3" is not deleted in the towrite string??
    Output:
    C:\TestRead>java NewStringDelete
    String v after remove [ &#9668;a string of data3 &#9668;a string of data2 &#9668;a string of data1
    &#9668;a string of data3 &#9668;a string of data2 &#9668;a string of data1 &#9668;a string of data3]
    String towrite after remove &#9668;a string of data3 &#9668;a string of data2 &#9668;a string of
    data1 &#9668;a string of data3 &#9668;a string of data2 &#9668;a string of data1 &#9668;a string of data
    3
    Code:
    import java.util.Vector;
    import java.io.*;
    public class NewStringDelete
         public static void main(String [] args)
              //String ls = System.getProperty("line.separator");
              //File file;
              Vector v=new Vector();
         try{
              BufferedReader br=new BufferedReader(new FileReader ("TestFile.txt"));
              String s;
              while ((s=br.readLine())!=null)
                   {v.addElement(new String(""+s));}
                        br.close();
         catch(IOException e)
                   e.printStackTrace();
    /*now you have a Vector containing String objects..*/
         String remove = ("a string of data3");
         String towrite="";
    System.out.println("String v after remove " + v);     
         for (int i=0; i<v.size();i++)
              String ss = (String)v.elementAt(i);
              if (ss.equalsIgnoreCase(remove)){continue;}
              //     towrite=towrite+ss+ls;
                   towrite=towrite+ss;
    System.out.println("");               
    System.out.println("");               
    System.out.println("String towrite after remove " + towrite);                    
    /*do filewrite*/
    //try{
    // FileWriter fw=new FileWriter(TestFile.txt);
    // fw.write(towrite);
    // fw.close();
    // catch(IOException e)
    //               e.printStackTrace();

  • Delete from string

    Hello,
    In the attached VI, I am trying to delete all the text data and just be left with the numeric values to be placed in an array.  I was thinking of converting the string to a numeric array and then deleting the excess arrays.
    Can you offer some more guidance to get the correct array?
    Thanks,
    hiNi.
    Attachments:
    Untitled 3.vi ‏11 KB

    duplicate post. Do NOT create a new thread for an existing question.

  • Delete a string part and replace by another one

    Hi,
    How can i delete a part of my string ?
    Thx

    REM ========== script T1.sql =============================================
    set verify off
    def A='0.000;0.000;1.000;'
    def B='0.000;'
    def C='2.000;'
    def occ=2
    select
           '&A'  OLD
          ,substr('&A' , 1, instr('&A','&B', 1, &occ) - 1)          X1
          ,substr('&A' , instr('&A','&B', 1, &occ),  length('&B') ) X2
          ,substr('&A' , instr('&A','&B', 1, &occ) + length('&B') ) X3
          ,   substr('&A' , 1, instr('&A','&B', 1, &occ) - 1)
           || '&C'
           || substr('&A' , instr('&A','&B', 1, &occ) + length('&B')) NEW
      from dual
    REM ======================================================================
    SQL> start T1
    OLD                X1     X2     X3     NEW
    0.000;0.000;1.000; 0.000; 0.000; 1.000; 0.000;2.000;1.000;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Crazy bug - Flash is deleting random string characters

    Hello!  I'm working through Adobe's "Actionscript 3.0 for Adobe Flash CS4 Professional" book (though I'm using a trial version of CS5).  I've run into a crazy error on the 2nd lessons that I believe is out of my control, and wanted to see if the more advanced users had seen it or had any advice.
    Everything was going well, when suddenly this bug appeared out of nowhere.  It appears that some random characters are getting removed from my strings.  For example, when I write the code:
    info_txt.text = "Welcome to the home page";
    And then run the program, then info_txt just shows: "elmehehmepage", which is the same string minus a bunch of characters.  When I try to write the code:
    info_txt.text = "abcdefghijklmnopqrstuvwxyz0123456789";
    Then it comes out as "aeghilmnprs".  This character removal happens for all strings.  And it seems that it isn't random, it's just removing a bunch of letters and all numbers, the same ones every time.
    Troubleshooting that didn't work:
    I thought it might have been something that I did, so I removed ALL actionscript from the project except for the above lines, and got the same result
    I tried opening the end-of-the-lesson completed example file that came with the book, and that had the same problem (now I KNOW it wasn't a problem with the actionscript)
    Tried restarting Flash CS5, no luck
    Does anyone have any ideas what's going on?  I can't figure out what made this occur suddenly, and I can't figure out how to undo it.
    Thanks!

    Dear Friends
    I find the solution for this Text Problem....
    The Problem is Anti-alias property of the TextField.
    by default it will be in "Anti-alies animation".
    but for Display the text properly we need to chang it...
    In Flash CS5 do the following chantge........
    Select Text Field ----> Properties Pallete ----> Anti-alias ---> Use Device Fonts
    or
    Select Text Field ----> Properties Pallete ----> Anti-alias  ---> Bitmap Text[no Anti-alias]
    now it will work properly.....

  • How to delete string from an array

    I just want to know that what changes i can do to delete the string if contains any extra characters like digits and punctuation marks in the middle or begining of the string but not at the end of the string, i've already tried to delete only the punctuation marks at the end of the string and keep that word. Please dont forget that i m a beginer
    import java.io.*;
    import java.util.*;
    class Project
    public static void main()throws IOException
    // set up input stream
    File finput = new File("C:\\f1.txt");
    FileReader fr = new FileReader(finput);
    BufferedReader fin = new BufferedReader (fr);
    // set up output stream
    File foutput = new File("C:\\f3.txt");
    FileWriter fw = new FileWriter (foutput);
    PrintWriter fout = new PrintWriter (fw);
    String nextLine; // a line read from the file
    StringTokenizer t; // the words within the line
    ArrayList words = new ArrayList(); // an array of words
    //String n = {0,1,2,3,4,5,6,7,8,9};
    System.out.println("Reading file.\n");
    // start
    while (true)
    nextLine =fin.readLine(); // read from input file
    if (nextLine==null) break; // if no more lines, get out
    t = new StringTokenizer(nextLine); // identify words
    while (t.hasMoreTokens())
    String str = (String)t.nextToken();
    str = str.toLowerCase(); // Converting all uppercase to lowercase.
    // Replacing all punctuation marks.
    str=str.replace(',',' ');
    str=str.replace('?',' ');
    str=str.replace('!',' ');
    str=str.replace('.',' ');
    str=str.replace(':',' ');
    str=str.replace(';',' ');
    str=str.replace('"',' ');
    str=str.replace('"',' ');
    str=str.trim(); // Removing empty spaces after words
    words.add(str); // add them to array
    String z; // Declaring string z for sorting.
    for (int i=0; i<words.size(); i++)
    for (int j=i+1; j<words.size(); j++)
    // Sorting the Array list.
    if (((String)words.get(j)).compareTo((String)words.get(i))<0)
    z=(String)words.get(i);
    words.remove(i);
    words.add(i,(String)words.get(j-1));
    words.remove(j);
    words.add(j,z);
    // To replacing word which have got "'".
    if ((String)words.get(i)).indexOf("'")!=-1)
    a="";
    int count[]=new int[words.size()]; //Creating int array for counting the repetition.
    for (int i=0;i<=words.size()-1;i++)
    for (int j=i+1;j<=words.size()-1;j++)
    //Counting the repetition of the string.
    //if (((String)words.get(j)).compareTo((String)words.get(i))==0)
    if (((String)words.get(j)).equals((String)words.get(i))==true)
    count[i]++;
    words.remove(j);
    j=j-1;
    System.out.println("Dictionary\t|\tRepetition");
    System.out.println("==========\t \t==========\n");
    for (int i=0; i<words.size(); i++)
    count[i]++; // initialinzing the value with 1
    // Printing result on the output file.
    fout.println((String)words.get(i));
    // Printing result on the screen with histogram.
    System.out.println((String)words.get(i)+ "\t\t|\t" +count[i]);
    fout.close();
    System.out.println();
    System.out.println("Finished");
    } //end of main.

    The code that you pasted does not seem like written by a beginner. So, did you write the code?
    If so, you should have no problem solving this simple thing.
    If not, then copy and pasting a block of program that you don't understand will keep you as a beginner all the time, so can't help you if you are willing to stay at beginner.
    --lichu                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Deleting leading substring from a string

    Hey guys,
    how can i delete a string from a leading substring?
    e.g.: "00022521" should become "22521".
    thx
    Markus

    I actually had written a little static class to handle just this.  Here is the static class.
    public class LeadingZeroRemover {
         public static String removeLeadingZeros(String str) {
              if (str == null) {
                   return null;
              char[] chars = str.toCharArray();
              int index = 0;
              for (; index < str.length(); index++) {
                   if (chars[index] != '0') {
                        break;
              return (index == 0) ? str : str.substring(index);
    Then you can simply use it like this.
    <b>LeadingZeroRemover.removeLeadingZeros</b> (soldToNumber.getValue().toString())
    Regards,
    Rich Heilman

  • Java Graphics -- Drawing Strings on JFrame

    Hello and thank you. I'm relatively young and I apologize for asking noob questions. The problem I am having is that I realized after 3 hours of research and then writing this code that when multiple JPanels are added to a JFrame, they overlap (I think) over each other. As a result, the output of this program below is at the bottom right of the frame, the number 841 appears (the last number in my array) and everything else is blank.
    And I could not at all understand how to create graphics objects. It kept giving me an error of not being able to be instantiated. And to be honest, I don't even really understand whats going on when I add the text to my JPanel. I never call paintComponents. And definately I could never even make a graphics object to provide it the parameter required. Anyway, I resolved to use Jpanels because they can be removed using the remove function of the JFrame. And It is vitally important that I can delete the strings off my frame. Here is my code:
    package main;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class VisualFrame extends JFrame{
        ArrayList<JPanel> numbers = new ArrayList<JPanel>();
        public VisualFrame(){
            setSize(1000, 500);
            setTitle("Binary Search");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setVisible(true);
        public void createPanels(int[] array){
            int x = 10;
            int y = 20;
            int xOffset = 50;
            int yOffset = 50;
            for(int i=0; i<array.length; i++){
                String num = Integer.toString(array);
    numPanel panel = new numPanel(num, x, y);
    numbers.add(panel);
    add(panel);
    x = x+xOffset;
    if(x>this.getWidth()){
    x = 10;
    y = y+yOffset;
    class numPanel extends JPanel{
    String num;
    int x;
    int y;
    public numPanel(String str, int x, int y){
    num = str;
    this.x = x;
    this.y = y;
    public void paintComponent(Graphics g){
    g.setColor(Color.black);
    g.setFont(new Font("Times", Font.BOLD, 12));
    g.drawString(num, x, y);
    My main method is inside of a different class:
        public static void main(String[] args){
            VisualFrame frame = new VisualFrame();
            frame.createPanels(array);
        }Firstly, do I even have the problem I'm having right? If so,
    Is there a way to restrict the size of the panels to the length and width of what it contains?
    Or can someone give me a good, very detailed link to how to use Graphics? Or perhaps someone could prove to me a good method.
    Edited by: 989946 on Mar 8, 2013 6:45 PM

    Why don't you start by learning from the experts?
    The Java Tutorial has sections that show how to use Java functionality.
    http://docs.oracle.com/javase/tutorial/
    The Graphiics section covers GUI and Swing
    http://docs.oracle.com/javase/tutorial/uiswing/index.html
    >
    Creating Graphical User Interfaces
    Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.
    >
    And that section has links for trails such as how to use ALL of the different swing components including frames and panels
    http://docs.oracle.com/javase/tutorial/uiswing/components/index.html
    >
    Using Swing Components tells you how to use each of the Swing components — buttons, tables, text components, and all the rest. It also tells you how to use borders and icons.

  • I downloaded a music software and then deleted it. It changed my homepage designation and I can't get it to change back to Firefox. I do know how to change this but it is not working. Can you help?

    The music software is imesh and I have changed my homepage designation with Firefox, in my internet options for Windows. Every time I close the page, the homepage changes back to imesh search page. I have deleted imesh from my computer including going to windows explorer and deleting all imesh that I can find to no avail.

    Steps to remove iMesh as your homepage:<BR>
    # In the address bar, type '''about:config''' and press Enter.
    # In the '''Filter''' textbox at the top, type: '''keyword.URL'''
    # You will be presented with the entry for keyword.URL
    # Double-click on it, delete the string and press OK.
    # Exit from Firefox.
    Next, you need to set the desired website as your homepage. Open Firefox and follow the instructions given in this article: [[How to set the home page]].

  • How can I retrieve deleted text messages from my iphone 5

    Somebody deleted a string of text messages from my iPhone 5 and I want to know if they can be retrieved and if so how? I'm new to the iPhone as this is my first apple product.  I am still not even sure on how to use my iTunes and so forth.  Please help as the string of messages was very important!! Thank you so very much!! Tracy

    SMS text messages are backed up with the iPhone - whether it's locally or to iCloud. If you've already written over the backup that had them (as in, backed up after the delete) then they're gone.
    If you still have a backup available from a time where you had the messages on your iPhone, all you have to do is erase the iPhone and restore from that backup.
    "Retrieve deleted messages from iPhone" is simple as pie.

Maybe you are looking for