Remove blanco line from poplist

Hi,
How do I remove a blanc line from the poplist? I've first entered 4 items in the list item property of the poplist. The insert property is set to no, required is set to yes and initial value is '0'
Now I want the last item to be removed:
If I simply delete the list item and the value a blanc line appears when running.
I've also used 'ctrl + <'. This removes the item but when trying to compile I receive an error because the blanco items under the line that I've deleted contains LIST38, LIST39, ... as value. This doesn't correspond with the max length of 1.
Any idea?
Thanks

I've solved it.
I've also deleted the last item that I actually didn't want to deleted and everything beneed it with ctrl + < and than add it the item again.
Thanks for your time.
Regards

Similar Messages

  • How to remove characters/lines from the beginning of an InputStream

    Hi,
    I have a program which receives several InputStreams. From each of these streams I have to remove 2 lines from the beginning. After the lines are removed, all the streams are combined to one with SequenceInputStream and read in one chunk. Is there an easy/simple way of doing this?
    One option I thought would be to read the char by char until 2 end of line chars have been detected and then read the rest of the data to a buffer. And the create a ByteArrayInputStream out of this buffer. Problem with this approach is, that the amount of data can be large, so putting all the data in to memory might cause problems.
    Another option is to use BufferredInputStream and use the readline() method twice to get rid of the lines that are not needed. After this I would write the data to some output stream, which is then converted back to input stream. Propably would work, but sound too much of work for a simple thing like this. There has to be better way.
    To make it simple, what I need is a method that looks like the following, or something similar
    *  Removes n number of lines from the beginning of a InputStream.
    *  @param is InputStream where the lines are removed
    *  @param numberOfLines int value to indicate how many lines whould be removed
    *  @return InputStream where lines have been removed.
    public InputStream removeLines(InputStream is, numberOfLines);Thanks.

    Here's the code, feel free to use it. Comments are also welcome.
    public InputStream removeLinesFromTheBeginning(InputStream is, int numberOfLines) throws IOException
              char c = 'c';
              int i = 0;
              for(int n = 0 ; n < numberOfLines ; n++)
                   do
                        c = (char)is.read();
                        System.out.print(c);
                        if(c == (char)-1)     // end of stream reached before any newline characters were found.
                             return null;
                        i++;
                   while(c != '\n');
                   System.out.println();
                   System.out.println("Characters removed:" + i);
                   System.out.println("n: " + n);
                   i = 0;
              return is;
         }Edited by: dave_spaghetti on Jun 16, 2009 5:42 AM
    Fixed a bug.

  • How can i remove a line from an ordinary text file?

    It is easy to remove a line from a file by rewriting the file. how can i remove a line without rewriting ? Also, do not use whitespaces to overwrite the line. I expect a perfect line deletion code .....

    gimbal2 wrote:
    hsc71 wrote:
    It's the way you communicate. Try to be carefull with the words you use in your post. It's easy to insult people just by choosing the wrong words. Bold text and capitals is equal to shouting.
    shock. You said "wrong words". I am seriously offended by that!
    Seriously, would you care that I am offended? I really hope not... Say what you want, people will find reasons to take offense one way or the other.Hehe, maybe you're right, but the OP still has no answer.............and in the end that's what he/she is looking for.

  • [svn] 4694: Don't remove text lines from the container if it isn' t the container the lines were added to.

    Revision: 4694
    Author: [email protected]
    Date: 2009-01-27 14:35:21 -0800 (Tue, 27 Jan 2009)
    Log Message:
    Don't remove text lines from the container if it isn't the container the lines were added to. When there is a state change the displayObject can be switched out from under the TextGraphic and TextBox.
    QE Notes: need to add tests - will attach my test program to bug
    Doc Notes:
    Bugs: SDK-18923
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18923
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as

    Yup, you guys pointed me in the right direction.
    I changed my adjustmentListener to the following:
    JScrollBar scrollBar = (JScrollBar) e.getSource();
    int endLoc = document.getLength();
    try {
        Rectangle end = outputArea.modelToView(endLoc);
        if (end != null) {
            int n = scrollBar.getValue() + scrollBar.getVisibleAmount();
            boolean locked = (end.y >= n && n <= (end.y + end.height));
    } catch (BadLocationException ex) {
    }By comparing scrollbar position with the visible rectangle of the end of the document, I can now easily tell if the user has moved the tracker back or not.
    To go to the next step of automatically pausing scrolling whenever the user is moving the slider back, I also had to disable the automatic scrolling performed by DefaultCaret. Because there was no way to tell if the user was scrolling or if the output was adjusting from the adjustmentListener, I also had to flag whenever I was autoscrolling.
    The end result is a JTextPane that can be appended to at all, and locked by the user by using the slider. If new data arrives, the window is not scrolled, and any text selection the user has is not cleared. Perfect!

  • Is there a charge to remove a line from my plan?

    I have several lines on my current wireless plan.  Will there be a charge to remove any of those lines and if so, how much is the fee?

        KWildman, the more, the merrier! Why would you want to remove a line from your account? Let's talk about this.
    When accepting a two year agreement, each line has it's own contract end date. If you cancel services prior to the contract end date, then you will be billed an Early Termination Fee. This fee varies based on the device that you upgraded to and amount of months that you've completed on that contract. For more information regarding your customer agreement and how the Early Termination Fee is calculated, click http://bit.ly/17srsZb
    Lasina_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • How to remove new line from string

    I have a string say following
    String line = "one\ntwo\nthree";Now i am trying to remove new line from string. For this i did following
    String txt = line.replaceAll("\\n","");But i see still new line is occuring. Is it correct way. Please advice me.

    Ok. I was just using \n instead of \r\n. And i am in windows. I will give a try with \r\n
    Ok i tried using following , but it doesnt work.
    line = line.replaceAll("\\r\n","");Am i missing anything here. Please guide me.
    Edited by: ArpanaK on Oct 8, 2007 4:44 PM

  • How do i remove a line from my family plan?

    I need to remove a line from my family plan, how do i do it on the computer?

    You can't cancel service on-line; you'll need to either call Customer Service or visit your local Corporate Verizon store.

  • How can I remove a line from a file?

    how ca i remove one or more than one line from a text file?

    Open the file for input.
    Open another file for output.
    Read each input line.
    If you want to delete it, go get the next line
    Otherwise, write the line to output, and go get the
    next line.
    Close both files.

  • How to remove empty lines from xml files after removing nodes from document

    <pre>
    Hi
    <b>i have xml document, which is shown below
    after removing some nodes from the document ,i am getting empty lines in place of removed nodes,how to resolve this and get the proper xml document without any errors</b>
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE Message SYSTEM "TRD01.dtd">
    <Message>
    <Header>
    <CounterPartyType>CLIENT</CounterPartyType>
    <CreationTime>20134455</CreationTime>
    <ErrorCode>363 </ErrorCode>
    <ErrorEnterPriseId>N</ErrorEnterPriseId>
    <ErrorStatus>1</ErrorStatus>
    <ErrorSystemId>STL</ErrorSystemId>
    <ErrorTimes>31</ErrorTimes>
    <MessageType>T</MessageType>
    <RecipientEnterpriseId>N</RecipientEnterpriseId>
    <RecipentSystemId>EXM</RecipentSystemId>
    <Remarks>REMARSK</Remarks>
    <SenderEnterpriseId>N</SenderEnterpriseId>
    <SenderSystemId>TR</SenderSystemId>
    </Header>
    </Message>
    <ErrorCode>363 </ErrorCode>
    <ErrorEnterPriseId>NIHK</ErrorEnterPriseId>
    <ErrorStatus>1</ErrorStatus>
    <ErrorSystemId>STL</ErrorSystemId>
    <ErrorTimes>31</ErrorTimes>
    XPathExpression expression5 = xpath.compile(xmlpath5);
    Object result5 = expression5.evaluate(doc, XPathConstants.NODE);
    Node node5 = (Node) result5;
    node5.getParentNode().removeChild(node5);
    XPathExpression expression6 = xpath.compile(xmlpath6);
    Object result6 = expression6.evaluate(doc, XPathConstants.NODE);
    Node node6=(Node) result6;
    node6.getParentNode().removeChild(node6);
    XPathExpression expression7 = xpath.compile(xmlpath7);
    Object result7 = expression7.evaluate(doc, XPathConstants.NODE);
    Node node7=(Node) result7;
    node7.getParentNode().removeChild(node7);
    doc.normalize();
    doc.normalizeDocument();
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    t.setOutputProperty(OutputKeys.INDENT, "yes");
    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    t.setOutputProperty(OutputKeys.METHOD,"xml");
    t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
    the xml output i am getting is
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Message>
    <Header>
    <CounterPartyType>CLIENT</CounterPartyType>
    <CreationTime>20134455</CreationTime>
    <MessageType>TRD01</MessageType>
    <RecipientEnterpriseId>N</RecipientEnterpriseId>
    <RecipentSystemId>STL</RecipentSystemId>
    <Remarks>REMARSK</Remarks>
    <SenderEnterpriseId>N</SenderEnterpriseId>
    <SenderSystemId>T</SenderSystemId>
    </Header>
    </Message>
    <b>could you please let me know how to avoid empty lines in the xml doucment output</b>
    this is the method i am using to get the result
    public void ValidateRecord(String xml){
    try{
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = factory.newDocumentBuilder();
    //parse file into DOM
    /*DOMParser parser = new DOMParser();
    parser.setErrorStream(System.err);
    parser.setValidationMode(DTD_validation);
    parser.showWarnings(true);*/
    System.out.println ("HI THIS xml is validation "+xml);
    Resolver res = new Resolver();
    db.setEntityResolver(res);
    Document doc = db.parse(new InputSource(new StringReader(xml)));
    XPathFactory xpf = XPathFactory.newInstance();
    XPath xpath = xpf.newXPath();
    // XPathExpression expression = xpath.compile("//A/B[C/E/text()=13]");
    String xmlpath="/Message/Header/CounterPartyType/text()";
    String xmlpath1="/Message/Header/RecipentSystemId/text()";
    String xmlpath2="/Message/Header/ErrorSystemId/text()";
    XPathExpression expression = xpath.compile(xmlpath);
    XPathExpression expression1 = xpath.compile(xmlpath2);
    Object result = expression.evaluate(doc, XPathConstants.NODE);
    Object result1 = expression1.evaluate(doc, XPathConstants.NODE);
    Node node = (Node) result;
    Node node1 = (Node) result1;
    System.out.println("the values of the string is " +node.getNodeValue());
    System.out.println("the values of the string is " +node1.getNodeValue());
    // for (int i = 0; i < nodes.getLength(); i++) {
    //System.out.println(nodes.item(i).getNodeValue());
    // CAHNGING THE RECEIPENT NODE
    XPathExpression expression2 = xpath.compile(xmlpath1);
    Object result2 = expression2.evaluate(doc, XPathConstants.NODE);
    Node node2 = (Node) result2;
    System.out.println(node2);
    node2.setNodeValue(node1.getNodeValue());
    System.out.println(node2);
    //removing the nodes from document
    String xmlpath3="/Message/Header/ErrorCode";
    String xmlpath4="/Message/Header/ErrorEnterPriseId";
    String xmlpath5="/Message/Header/ErrorStatus";
    String xmlpath6="/Message/Header/ErrorSystemId";
    String xmlpath7="/Message/Header/ErrorTimes";
    XPathExpression expression3 = xpath.compile(xmlpath3);
    Object result3 = expression3.evaluate(doc, XPathConstants.NODE);
    Node node3 = (Node) result3;
    node3.getParentNode().removeChild(node3);
    XPathExpression expression4 = xpath.compile(xmlpath4);
    Object result4 = expression4.evaluate(doc, XPathConstants.NODE);
    Node node4 = (Node) result4;
    System.out.println("node value");
    System.out.println(node4.getParentNode().getNodeName());
    node4.getParentNode().removeChild(node4);
    XPathExpression expression5 = xpath.compile(xmlpath5);
    Object result5 = expression5.evaluate(doc, XPathConstants.NODE);
    Node node5 = (Node) result5;
    node5.getParentNode().removeChild(node5);
    XPathExpression expression6 = xpath.compile(xmlpath6);
    Object result6 = expression6.evaluate(doc, XPathConstants.NODE);
    Node node6=(Node) result6;
    node6.getParentNode().removeChild(node6);
    XPathExpression expression7 = xpath.compile(xmlpath7);
    Object result7 = expression7.evaluate(doc, XPathConstants.NODE);
    Node node7=(Node) result7;
    node7.getParentNode().removeChild(node7);
    // Node b13Node = (Node) expression.evaluate(doc, XPathConstants.NODE);
    //b13Node.getParentNode().removeChild(b13Node);
    doc.normalize();
    doc.normalizeDocument();
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    t.setOutputProperty(OutputKeys.INDENT, "yes");
    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    t.setOutputProperty(OutputKeys.METHOD,"xml");
    t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
    t.transform(new DOMSource(doc), new StreamResult(System.out));
    catch (Exception e) {
         e.printStackTrace();
    System.out.println(e.getMessage());
    </pre>
    Edited by: user12185243 on Apr 6, 2013 6:38 AM
    Edited by: user12185243 on Apr 6, 2013 6:41 AM
    Edited by: user12185243 on Apr 6, 2013 6:43 AM
    Edited by: user12185243 on Apr 6, 2013 6:45 AM
    Edited by: user12185243 on Apr 6, 2013 9:00 AM

    either this way we can do this
    1)
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    <b> factory.setIgnoringElementContentWhitespace(true); </b>
    DocumentBuilder db = factory.newDocumentBuilder();
    or
    2)
    java.io.StringWriter sw = new java.io.StringWriter();
    StreamResult sr = new StreamResult(sw);
    t.transform(new DOMSource(doc), sr);
    String xml1 = sw.toString().trim();
    <b> xml1=xml1.replaceAll("\\s",""); </b>
    System.out.println(xml1.trim());

  • Problem removing grid lines from prints in PhotoShop Elements 13

    I cannot remove faint grid lines from my prints in Photoshop Elements 13, even after I've turned off the grid overlay. How can I get these lines out? I'm desperate as I am writing a book and am stymied at this point. Help!

    John Maggot wrote:
    I cannot remove faint grid lines from my prints in Photoshop Elements 13, even after I've turned off the grid overlay. How can I get these lines out? I'm desperate as I am writing a book and am stymied at this point. Help!
    The grid does not print. There has to be another source for the visible grid lines on your prints. Suggest that you do the following:
    Make sure that your ink cartridges have plenty of ink
    Do a deep cleaning of your print head
    Align the cartridges as per instructions in the printer's manual
    Do a test print

  • Remove a line from develop module history

    Hi, is it possible to remove a line (and the action related to it) from the history of the develop module ?
    As I explain in another thread, Lightroom reinit all my modification after a "Read metadata from file" and I want to remove this action.
    Thank you !

    Hi Booby,
    You could use an XSL-mapping for this purpose:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
            <xsl:copy-of select="."/>
        </xsl:template>
    </xsl:stylesheet>
    Sorry, i didn't read that you dont want a map, if you dont find the adapter solution you can use this map
    I've seen this option in the module adapter, but i dont test it:
    Regards
    Message was edited by: Iñaki Vila

  • Remove black lines from a tiff image in Photoshop.

    Hi,
    I am developing an automation plugin in Ps. I have images which contains text, border and vertical lines. I need to remove the lines and border from the image. The problem is that the color of text,line and border are same ie. black.
    I tried reading pixel by pixel but couldn't differentiate between the lines and text as both are of same color.
    Can anyone suggest some other way to achive this?
    Thanks in advance.

    Just to clarify the situation for us. You want to remove the black frame and the vertical lines while leaving the black rectangle and the text intact in the image? Is this correct?
    You also mentioned you are attempting to create an "automation plug-in for Photoshop"
    You say you have other images, I'm assuming they are different for the one you posted but you want the "plug-in" to delete the black frame & vertical lines from a number of different images?
    Will the black rectangle always be in the same exact position and will the image dimensions for all the images always be the same?
    As Noel said, you should go to the Photoshop SDK forum. Explain to them what you want to do and that you want to do this on many different images.
    As an afterthought, a Plug-in is different from a Photoshop Action. Perhaps this could be partially done with an Action that allows for a pause to select or change something before continuing the action.
    And no, I don't create Actions myself so I can't help.  Do some reading and see what you can come up with.

  • Remove address line from Popup page

    I would like remove the address line from several popup pages I have. I know the best way to do this would be through a page template. However, I don't see where the address line would be in the template. Can someone please suggest how best to remove the address line?
    Thanks!
    -Reid

    Reid-
    Actually this is not done by templates, you can easily do that in the JS popup parameter "location" that shows/hides the location bar (where you enter URLs) as follows:
    window.open ("http://www.yourlink.com","window_title","menubar=0,resizable=1,width=350,height=250"); Hope this helps,
    Sam
    Please reward good answers by marking them correct or helpful!

  • How do I remove the lines from the picture after using rectangular grid tool.

    So I was making a pixel character for test purpose for my game, and after I finish I didn't know how remove the lines without messing up the picture. I use the erase to remove the excess lines. So I was wondering how do I remove the lines within the picture with out messing up the picture.
    I'm going be using the Illustrator and rectangular grid tool for my game pictures. This is in Illustrator CS6.

    If you use the pathfinders unite, you can be left with gaps between your filled objects. If thats the case, use your select menu to select all of one color, then add a stroke with that same color and increase the size of the stroke if necessary. Repeat for the next color until your done.

  • Regexp_replace to remove blank lines from multi lines in a single field

    Gents. 10g R2.
       with test_tab as
       (select 'x'||chr(10)||'y'||chr(10)||chr(10)||'z' tester from dual)
       select tester from test_tabproduces
    x
    y
    zI require
    x
    y
    zThere's a lot of examples on how to end up with xzy, but I need to maintain the carriage returns, just strip out blank lines.
    I've been trying with posix [:cntrl:] but it doesn't seem to want to work. Question: how to get the desired output?
    If this has been answered on another post, please point me in the right direction and accept my apologies!

    Hi,
    The simplest thing might be to use LTRIM. (or TRIM, if you need to remove them from the end of the string, as well).
    If you want a regular expression:
    SELECT     REGEXP_REPLACE ( tester
                     , '(^|' || CHR (10) || ')' || CHR (10) || '+'
                     , '\1'
    FROM     test_tab
    ;This might be easier to understand if you let x stand for CHR (10):
    SELECT     REGEXP_REPLACE ( tester
                     , '(^|x)x+'
                     , '\1'
    FROM     test_tab
    ;This is easier to understand: \1 is either the beginning of the string or x. When this is followed imeediately by 1 or more extra x's, then replace that whole pattern with \1 (that is, remove the extra x's).

Maybe you are looking for