Deleteing Characters from text fields indvidually

Hi,
i am in the middle of trying to create a GUI. However, i have a delete button and what i need it to do is delete the carachters individually for the last enterd digit but am really struggling to find the code!
please can you give me some ideas! im reay finding this difficult!
Thanks guys!
CullenWales

CullenWales wrote:
Who the hell do you think you are?! i ask a simple question and throws a cocky comment back, so if i was you i would just stand aside.
This forum is really helpful if you can find wat your ur looking for but christ as soon as you post something stuffed.
You people really need toget a life and get to the pub and stop this bloody nerdy programming crap i thinks!
Well, when you have 20+ years in the business and get a dickhead question from a wannabe, just see how you respond. Rember, this is not your HS board where you have 100's of other wannabe's all trying to copy from each other; many of the people you insult on here are and have been senior level programmers for longer than you've been around.
Oh ya, one day you may be interviewing with one of these very people you're now insulting.

Similar Messages

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • Tabbing from Text Field to Text Field in Bin

    When entering text in a bin (for example, renaming a subclip), how can I tab from text field to text field (for example, if I ‘d like to add something to the comment column after renaming the subclip) without having to resort to my mouse? In other words, what is the keyboard shortcut?
    Martin
    ¿why ask why?

    Well, OK, that's interesting, Nick, but it seems to add steps rather than remove them and I still need to jump to my mouse. As best I can tell, CMD+9 always takes me to the Format tab. It appears I can't tab over to the Logging tab; I have to use my mouse.
    Then I have 37 fields (yep, I counted 'em) to wade through looking for the one I want to change. My custom bin setting only has the fields I care about. It would be easier to use my mouse to click on the field I want to edit without leaving my bin for the Properties window.
    I was just hoping there was a keyboard method.
    Martin

  • Problem with characters in text field

    hi all
    i am missing a few characters, once i load text into a dynamic text field. chars are not missing per say; they are being replaced with empty squares.
    characters like the euro sign and accentuated german a letter.
    whats is weird is that other accentuated german letters do appear. so only a few selected are missing.
    How ive set up the fla:
    1) i've added 4 text fields to the stage in the font im using, Arial, one for each font style: normal, italic, bold and bold italic, and in all 4 fields ive embedded all latin characters (to include the german accentuaded characters and im guessing it's in the punctuation group that holds the euro sign, so that one is also embedded), besides lowercase, uppercase, numerical, and all the default groupd to include basic text.
    2) i've got a dynamic text field, created with createTextField, and setup the following ActionScript (2):
    this.createTextField("T_text",1,0,10,Stage.width-60,50);
    var myFmt = new TextFormat();
    myFmt.size = 12;
    myFmt.leading = 3;
    myFmt.font = "Arial";
    T_text.html = true;
    T_text.autoSize = "left";
    T_text.multiline = true;
    T_text.wordWrap = true;
    T_text.selectable = false;
    T_text.embedFonts = false;
    T_text.textColor = "0x666666";
    T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
    T_text.setNewTextFormat(myFmt);
    now, im calling text from a database.
    when calling the text from the browser  url bar, there's no chars missing.
    its just when i make this call from flash and load the text into the dynamic text field, that characters go missing.
    below is a link to a print screen of the faulty text that is displayed in flash's dynamic text field.
    http://img210.imageshack.us/img210/340/utf8.png
    any ideas? i mean, it seems that the arial font is missing a few accentuated characters! because the code i have setup loads other accentuated characters.
    anyone has seen this issue before and know how to solve it?
    regards

    no.
    you assigned your embedFonts property to be false.
    look, you can test if you've embedded fonts correctly by using:
    T_text._rotation=3;
    if you see no text, you're not embedding fonts correctly.
    so, use:
    T_text.embedFonts=true;
    and then test.  if you see no text, use:
    click on the upper right of your library panel > new Font > select Arial and tick the symbols you need to embed > tick export for actionscript and assign a linkage id (eg, ArialID). click ok.  then use:
    this.createTextField("T_text",1,0,10,Stage.width-60,50);
    var myFmt = new TextFormat();
    myFmt.size = 12;
    myFmt.leading = 3;
    myFmt.font = "ArialID";
    T_text.html = true;
    T_text.autoSize = "left";
    T_text.multiline = true;
    T_text.wordWrap = true;
    T_text.selectable = false;
    T_text.embedFonts = true;
    T_text.textColor = 0x666666;  // no quotes here.  this is a number
    T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
    T_text.setTextFormat(myFmt);  // to format the above text, use setTextFormat().  if you want to format text added after this line, use setNewTextFormat()

  • Importing special characters from text file

    My project requires me to import a text file into a dynamic
    text field by using the loadVariables() function. My problem is
    that the text file contains a ampersign "&" . It seems that the
    ampersign stops the rest of the text from being imported into my
    flash movie. Is there a special character or escape character that
    I can use to allow me to import the ampersign?
    I've tried using the & and setting my dynamic text
    field to HTML. No luck. Oh.. I'm using flash MX :(
    Any ideas?

    Hey I've run into this problem and found the solution lies
    with JavaScript which can read the text just fine and then parse it
    back to Flash as escape characters:
    //JavaScript code:
    var origText = 'blah blah & then i did this & then
    blah blah";
    var newText = String(escape(origText).replace(new
    RegExp('\\+', 'g'), '%2b'));
    FlashWin.sendText(newText); // << this is a reference
    to a flash window with ExternalInterface enabled
    // end
    However, I was using HttpRequest in JS to get my original
    data. So this method is dependent on something other than Flash to
    retrieve the original text (with ampersands).
    I really hope they fix this bug in the future, it can drive
    you nuts....
    -Dan

  • Deleting data from text files

    Hi there,
    I am having a real battle trying to delete data from a text file I am using. There seems to be this giant cloud with Java, where there is no real easy way to delete text from a file??
    I have a JFrame with two textfields on it where you enter the username and pcname. There is a OK button once you have entered those details.
    On action event I would like those two details, to be removed from the text file that has been read in.
    I have a text file like this:
    bob
    pc1
    bill
    pc2
    The data above gets written no problem, one at at a time using the below.
    File f = new File("\\c:\\filename.txt");
    String strToWrite;
    try
    FileOutputStream fstr = new FileOutputStream(f);
    strToWrite = username1+ '\r'+'\n' ;
    byte[] bytes = strToWrite.getBytes(); fstr.write(bytes);
    strToWrite = pcname1 + '\r'+'\n' ;
    byte[] bytes2 = strToWrite.getBytes(); fstr.write(bytes2);
    strToWrite = username2+ '\r' +'\n' ;
    byte[] bytes3 = strToWrite.getBytes(); fstr.write(bytes3);
    strToWrite = pcname2 + '\r'+'\n' ;
    byte[] bytes4 = strToWrite.getBytes(); fstr.write(bytes4);
    catch (IOException e)
    System.out.println("Error -- " + e.toString());
    To read them back in I have made the follwoing:
    BufferedReader br= null;
    Count = 0;
    try
    br = new BufferedReader(new InputStreamReader(new FileInputStream("\\c:\\filename.txt")));
    String s = "";
    while((s=br.readLine()) != null )
    Count = 1;     
         //System.out.println("Data is " + s);
         inboundtext = s;
         if ( Count == 1 )
    break;
    while((s=br.readLine()) != null )
    //System.out.println("Data is " + s);
    inboundtext = s;
    Count = 2;
    if ( Count == 2 )
    break;
    catch(IOException ie)
    finally
    try
         if(br!=null) br.close();
    catch(Exception e)
    Now the above I know, is reading each line of the text file one at a time.
    Now what I would like is that when the text that we got from the textfields, using getText(), be removed from the file without destroying the rest of the records in there? Why is it so easy to add and replace files, but not do any deleting from them?
    please help!!

    sorry, FileOutputStream fstr = new FileOutputStream(f);
    should be FileOutputStream fstr = new FileOutputStream(f, true);

  • Text Area steals Focus from Text Field when selected with mouse

    I have created a very simple form with 4 spry validation elements here :: http://octopusdesign.net/contactus.html
    When I attempt to select the 'Your Email' text field using the mouse, focus is grabbed by the text area above it.
    It is only possible to get focus on the 'Your Email' text field by using tab.
    My best guess is that this is a bug in the framework.
    In addition to updating my spry libraries to 1.6 from 1.4 I've tried the following things::
    Reordering the elements in the form.
    Creating the elements in a different order.
    Replacing the validation elements with ordinary elements.
    None of these fixed the problem.
    Strangely, if I remove the validation text area there is no problem.
    If anyone can shed some light on this I would really appreciate it.
    Wisdom gratefully received.
    Chris

    Furthermore ::
    I've tried to reconstruct the form from scratch and discovered that if you have a validation text field and a validation text area in any order on the form, selecting the 2nd element with the mouse always results in the first element stealing the focus.

  • Create PDF from text fields in website

    Hi!
    Is it possible to hook up text fields in a website to a PDF document?
    I have a website developed in Dreamweaver/asp and I would like the ability to create
    a PDF based on values from different text fields (10-12).
    Today we first insert the values to a webpage and then insert the same values to a PDF
    made in Live Cycle, I'm thinking there have to be a way to automate this process.
    Regards,
    Christian

    Hi Christian,
    I am moving this over to our form gurus in hopes they can assist you!
    Regards, Stacy

  • How to generate barcode from text field in adobe form???

    hello everyone,
    I'm new in this forum and I hope that there are people who can answer my question.
    I use Adobe Acrobat Pro 9. I have converted a Word template to a PDF template and everything works fine.
    I would like to generate a barcode of the contents of a text field (by the users), for example the following format 0123-A123456-11.
    I have tried in various ways but it has not worked. The barcode becomes unstructured and unreadable.
    Does anyone know how to do it step by step?
    Best regards!
    Nader from Sweden

    Hi,
    You can insert dynamic barcodes into your form using LC Designer. 
    You should do a search here as dynamic barcodes has been covered by by Steve Walker in detail. For example:
    BARCODE 128 - possibility of binding 2 data fields to the barcode
    Paperforms barcodes
    Using Barcode in Acroforms
    However one thing to bear in mind is that dynamic barcodes will not work in Reader unless the form has been Reader enabled using LC Reader Extensions ES2, which is a server product. Option 4 in this summary:
    Good luck,
    Niall
    Assure Dynamics

  • JTextArea How do I add text on a new line from Text field

    I want to put each new input from the text field at the start of a new line and keep the previous entries at the start of their
    own line.
    I'm doing this but need help with the new line.
    jTextArea1.setLineWrap(true);
    jTextArea1.setWrapStyleWord(true);
    jTextArea1.setEditable(false);
    public void textProcess()
    System.out.println(sourceref1.getSourceText());
    jTextArea1.setText(jTextArea1.getText()+" "+source.getSourceText());
    The above just keeps adding on the new text until I reach the word wrap limit.
    Thanks

    Maybe you should use the escape character. Anyway, you can consider use append(text:String) instead of getText() everytime.
    Eg:
    jTextArea1.append("\n"+source.getSourceText());

  • How to remove labels from text fields?

    Hey Everyone!
    I am having troubles with forms in Dreamweaver CC.
    I insert a text field in a form but the text field automatically comes with a label.
    How do i stop this?

    And I get that!
    But say I insert a text field.
    It is preceded by a label saying "Text Field 1:"
    But I already have written what the text field is supposed to do!
    And when I go in front of the label and press backspace, it doesn't wanna get deleted; not until I have to select the text and delete it!
    So you see a large part of my time is getting wasted in formatting the page and i can't give my full attention to the php code I want to write as I get frustrated because of this!
    So if you could help me get rid of the labels for good ; it'll be amazing!
    Thanks
    Regards
    Anuj

  • Remove un recognized characters from a field of a table.

    Is there any way to remove un recognized characters from content of field in a table. Please help.
    Thx

    If you know the characters that you want removed, you may have success using the TRANSLATE function.
    The key here as stated in the SQL Language Reference is
    the extra characters at the end of from_string have no corresponding characters in to_string. If these extra characters appear in char, then they are removed from the return value.
    The other useful function to remove unwanted junk is REGEXP_REPLACE - but you must be on 10g or later for regular expression support. Translate is supported at least as far back as 8i, perhaps further.

  • Getting a zero value from text field

    Hi,
    The form has 3 text fields for Freight areas, the viewer inserts "1" in the field that is applicable to their area.
    The first 2 fields have a cost of $10.00 and $15.00 and the third is for pick up so there is zero cost. If they insert "1" in either of the 2 fields, it shows up as 1 in the returned email to to the site owner and to the viewer but I can't get the free freight field to display anything in those returned emails.
    I've included the PHP form handler file and the site address is: http://www.hamdenestate.co.nz/test-site/contact-us.html
    Thanks.
    <?php
    $errors = '';
    $myemail = '[email protected]'; //<-----Put Your email address here.
    if(empty($_POST['name'])  ||
       empty($_POST['email']) ||
       empty($_POST['address']))
    $name = $_POST['name']; 
    $email_address = $_POST['email'];
    $phone = $_POST['phone'];
    $address = $_POST['address'];
    $addresstwo = $_POST['addresstwo'];
    $addressthree = $_POST['addressthree'];
    $wine1= $_POST['wine1'];
    $wine2= $_POST['wine2'];
    $wine3= $_POST['wine3'];
    $wine4= $_POST['wine4'];
    $wine5= $_POST['wine5'];
    $wine6= $_POST['wine6'];
    $chardonnay_2011_bottles = $_POST['PROD_Chardonnay2011Bottles_20'];
    $chardonnay_2011_cases = $_POST['PROD_Chardonnay2011Cases_204'];
    $pino_gris_2011_bottles = $_POST['PROD_PinoGris2011Bottles_21'];
    $pino_gris_2011_cases = $_POST['PROD_PinoGris2011Cases_228'];
    $sauvigon_blanc_2011_bottles = $_POST['PROD_SauvigonBlanc2011Bottles_20'];
    $sauvigon_blanc_2011_cases = $_POST['PROD_SauvigonBlanc2011Cases_204'];
    $riesling_2012_bottles = $_POST['PROD_Riesling2012Bottles_20'];
    $riesling_2012_cases = $_POST['PROD_Riesling2012Cases_204'];
    $pinot_noir_2009_bottles = $_POST['PROD_PinotNoir2009Bottles_25'];
    $pinot_noir_2009_cases = $_POST['PROD_PinotNoir2009Cases_250'];
    $message = $_POST['message'];
    $freight_bottles = $_POST['PROD_FreightBottles_10'];
    $freight_cases = $_POST['PROD_FreightCases_15'];
    $freight_Free = $_POST['PROD_FreightFree_0'];
    $totalcost = ($chardonnay_2011_bottles * 20 + $chardonnay_2011_cases * 204) + ($pino_gris_2011_bottles * 21 + $pino_gris_2011_cases * 228) + ($sauvigon_blanc_2011_bottles * 20 + $sauvigon_blanc_2011_cases * 204) + ($riesling_2012_bottles * 20 + $riesling_2012_cases * 204) + ($pinot_noir_2009_bottles * 25 + $pinot_noir_2009_cases * 250) + ($freight_bottles * 10 + $freight_cases * 15 + $freight_free * 000.00);
    $reply = $_POST['email'];
              $replysubject = "Auto-Reply: From Hamden Estate Website";
              $replyfrom = "From:  [email protected]\r\n";
              $replymessage = "Dear ".$_POST ['name']."\r\n\r\n";
              $replymessage .= "Thank you for placing an order with Hamden Estate vineyard. We will contact you shortly with a reference number and payment details...\r\n\r\n";
              $replymessage .= "";
              $replymessage .= "YOUR ORDER DETAILS:\r\n\r\n";
              $replymessage .= "Wine Selection: $wine1\r\n";
              $replymessage .= "Bottles: $chardonnay_2011_bottles\r\n";
              $replymessage .= "Cases: $chardonnay_2011_cases\r\n\r\n";
              $replymessage .= "Wine Selection: $wine2\r\n";
              $replymessage .= "Bottles: $pino_gris_2011_bottles\r\n";
              $replymessage .= "Cases: $pino_gris_2011_cases\r\n\r\n";
              $replymessage .= "Wine Selection: $wine3\r\n";
              $replymessage .= "Bottles: $sauvigon_blanc_2011_bottles\r\n";
              $replymessage .= "Cases: $sauvigon_blanc_2011_cases\r\n\r\n";
              $replymessage .= "Wine Selection: $wine4\r\n";
              $replymessage .= "Bottles: $riesling_2012_bottles\r\n";
              $replymessage .= "Cases: $riesling_2012_cases\r\n\r\n";
              $replymessage .= "Wine Selection: $wine5\r\n";
              $replymessage .= "Bottles: $pinot_noir_2009_bottles\r\n";
              $replymessage .= "Cases: $pinot_noir_2009_cases\r\n\r\n";
              $replymessage .= "FREIGHT: $wine6\r\n";
              $replymessage .= "North Island: $freight_bottles\r\n";
              $replymessage .= "South Island: $freight_cases\r\n\r\n";
        $replymessage .= "Client pick up: $freight_free\r\n\r\n";
              $replymessage .= "Total $ $totalcost\r\n\r\n";
              $replymessage .= "From the folks at Hamden Estate\r\n";
              $replymessage .= "[email protected]\r\n";
              $replymessage .= "http://www.hamdenestate.co.nz\r\n\r\n";
              $replymessage .= "This e-mail is automated, so please DO NOT reply.\r\n";
    if (!preg_match(
    "/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/i",
    $email_address))
        $errors .= "\n Error: Invalid email address";
    if( empty($errors))
              $to = $myemail;
              $email_subject = "Contact form submission: $name";
              $email_body = "You have received an online order via your website. Here are the details: ".
                                          " \n Name: $name
                                            \n Email: $email_address
                                            \n Phone: $phone
                                            \n Address: $address
                                            \n Address: $addresstwo
                                                                                                        \n Address: $addressthree
                                            \n Wine Selection: $wine1
                                            \n Bottles: $chardonnay_2011_bottles
                                            \n Cases: $chardonnay_2011_cases
                                            \n Wine Selection: $wine2
                                            \n Bottles: $pino_gris_2011_bottles
                                            \n Cases: $pino_gris_2011_cases
                                            \n Wine Selection: $wine3
                                            \n Bottles: $sauvigon_blanc_2011_bottles
                                            \n Cases: $sauvigon_blanc_2011_cases
                                            \n Wine Selection: $wine4
                                            \n Bottles: $riesling_2012_bottles
                                            \n Cases: $riesling_2012_cases
                                            \n Wine Selection: $wine5
                                            \n Bottles: $pinot_noir_2009_bottles
                                            \n Cases: $pinot_noir_2009_cases
                                            \n message \n $message       
                                                                                                        \n Freight: $wine6
                                                                                                        \n North Island: \n $freight_bottles
                                                                                                        \n South Island: \n $freight_cases
                                                                                                        \n Client pick up: \n $freight_free
                                                                                            \n Total $ : $totalcost";
    $headers = "From: $myemail\n";
              $headers .= "Reply-To: $email_address";
              mail($to,$email_subject,$email_body,$headers);
    mail($reply,$replysubject,$replymessage,$replyfrom);
              //redirect to the 'thank you' page          $reply = $_POST['email'];
              header('Location: contact-form-thank-you.html');
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
              <title>Contact form handler</title>
    </head>
    <body>
    <!-- This page is displayed only if there is some error -->
    <?php
    echo nl2br($errors);
    ?>
    </body>
    </html>

    bregent wrote:
    But wouldn't it be much more intuitive to use radio buttons here?
    Yes, but this a bit of a long running issue. The OP ideally wants to add the freight cost to the total price at the bottom of the form on the website before the information is sent back via php but that is done using javascript and radio buttons mess with the calculations. Inserting 1 into the freight form fields, which is counter-intuitive, does the trick but that will mess with the total price when php collects the information because the value is 1 rather than 10 or 15.

  • Info From Text Fields

    Hi, i was jsut wondeirng how to get the information submitted from a text field. Like, let's say i have a text field, and when the user types what they want in it, and hits the "Submit" button, it writes that information to a file. Thanks in advance
    PS: I know how to write info to a file, i just need to know how to get the information from the text field.

    Encephalopathic wrote:
    I recommend switching to Swing.Absolutely. Writing your app in AWT makes no sense these days. It doesn't really make your app look more "native" than Swing, due to its severe lack of features (accelerators for menus, toolbars, using the wrong fonts, etc.).
    If you really want to use a "native" toolkit instead of Swing, go with SWT, which has a much fuller feature set than AWT. Just be prepared to build different versions of your application for different platforms.

  • LOV from text field vs. button

    I have an LOV that works upon navigation to a text field. It works great. I now want to base it off a button instead. Can I do this, but keep it based on the data from the text field even though it is the button launching it?
    Also, can I elimate or disable the Find button in the lOV? How do I do this?

    I got it working now.
    used the following code:
    LOV lov = new LOV();
    void jButton1_actionPerformed(ActionEvent e) {
    lov.setDataItemName("infobus:/oracle/jstut/lOVRowSetlkupquad");
    lov.setRestrictedQuery("infobus:/oracle/jstut/rowSetlkupquad/QuadLong", null);
    lov.setTitle("Title of window");
    lov.setSize(550, 300);
    lov.show();
    ** note that lOVRowSetlkupquad is the lovrowset and not the lov.
    ** and note "rowSetlkupquad/QuadLong"
    is the object in the rowset it is based on.
    Still does anyone know how to eliminate the find button in the LOV box?
    null

Maybe you are looking for

  • IPhone loses battery charge while connected to MacBook! Is this NORMAL?

    Just as an example, I connected the iPhone to my MacBook this evening; it had about 60% charge, according to the green/black "thermometer." Then, I did some other stuff, and when I checked the thermometer again, it was down to about 20%! It seems lik

  • Help, was clearing HD out and now will not start up!

    I think I may have deleted some files i shouldn't have whilst trying to free up some space on my imac. If I turn it on it goes to the screen with the grey box telling me to restart my computer. Over the screen there is loads of text starting with, pa

  • How to use tv as a mac book monitor

    I AM TRYING TO HOW TO WATCH MY MAC ON TV SCREEN. I HAVE ALREADY CONNECT MY TV WITH MAC , WITH  MINI DVI ADAPTER  AND CABLE AND I SAW THAT THE MAC RECOGNIZE THE TV BUT I CAN'T SEE THE ICONS THAT ARE ON MY MAC ON TV. I CAN SEE ONLY DESKTOP BACKGROUND.

  • How to run applet within packages in tomcat

    I have servlet packages and applet packages in my application. I can successfully called my servlet packages by using: http://localhost/servlet/mypackage1.mypackage2.myServlet However, I can't call my applet packages by using: http://localhost/myappl

  • I am stuck again, really tried hard, to no avail

    Dear applescript genius, I have had help, came a long way, but got stuck again. I am still facing a lot of problems, but this one is now top 1 prio for me. I am trying to automate creating a new event in facebook. When you click Create Event on your