Plz help me in escaping the starting character

Actually i'm getting the name from textfeild and storing it in string.but wht i want is whn the user enters the first character i.e., either " or | in the Textfeild i need to trim the string i.e., it should not take those characters if they give them also wht should i do for this .plz help me it is urgent

You could try having a keypress action listener. If the user presses a key that you don't want to show, the action listener can handle the event.

Similar Messages

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'β%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • How to escape the special character ' (ascii 39) in a query

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    Use two single quotes inside your literals to represent one single quote.
    For example, this would find my name:
    SELECT *
      FROM emp
    WHERE name = 'Michael O''Neill';
    Michael O'Neill
    (acutely aware of the apostrophe issues in the world)

  • Plz help me to answer the security question of apple id

    plz help me to answer the security questions of apple id coz i have a great problem that i couldn't buy the itunes music with out using security questions.

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (110908)

  • Plz help me,after instuling the last software update,the programs and games and everything i have download it can't open!

    plz help me,after instuling the last software update,the programs and games and everything i have download it can't open!

    Have you tried the basics from the manual?
    restart, reset, restore.
    iPod touch User Guide (For iOS 4.3 Software)

  • Plz help me to get the document UIT 250 in IS-U area...

    Hi all,
    Can any body plz help me to get the document UIT 250 in IS-U area...
    Appreciate ur help..
    Regards,
    Raja

    String line1="27-03-2006";
    SimpleDateFormat dfInput = new new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy");
    Date dateBegin = dfInput.parse(line1.trim()); By the way, I feel there is some mismatch...

  • HT201407 i tried above mention resolution but my phone is not getting started plz help me to activate the phone

    i tried to update mu iphone 3gs from 4.1 to 6.0.1 but it is not activated it shows "your iphone cloud could not be activated because the activation server is temporarily unavailable.try connecting your iphone to itunes to activate it ,or try again in a few mintutes.
    if this problem presists ,contact Apple Support at apple.com/support
    i tried every thing but it is not happening so plz help me

    If your phone isn't being recognized by your computer, you need to follow the steps in this article to resolve that
    Also, some basic isolation needs to be done. Does it show up in itunes on any other computers? do you have other cords you can test with to see if it might be the cord? if the phone doesn't show up on any computers, it's likely your phone has a hardware issue
    http://support.apple.com/kb/TS1538?viewlocale=en_US is the article to use if you want to concentrate on trying to get a particular computer to recognize your phone

  • Plz help me to design the system......Its very urgent

    Hi all members
    I have a problem and i am not able to start with the solution of this
    if all of u can help me to move with the solution of this problem
    I have to send the Java interfaces, and a brief write-up with assumptions and class-design.
    Challenge
    Your challenge is to begin development of a back-end system for the Galactic Census.
    You will be designing and implementing a Java API;
    you will not be building the user interface.
    The specifications have been written on a stack of white index cards.
    Each card has a title at the top and a few sentences describing what is desired.
    Your customer, the Galactic Government,
    has also communicated to you some idea of the value of each card.
    Card Title Description Value
    Person Data Entry Several persons may be entered into the system.
    Each person has a full name, date of birth, planet of residence,
    local address (on that planet), and annual income.
    Being able to enter this data is critical to the Census.
    Person Data Report All the person data in the system may be retrieved at once.
    The data should be grouped by planet,
    and ordered alphabetically by full name within each planet.
    This report will be needed in the future,
    but is less immediately valuable than the various statistics.
    Statistic: Galactic Total The total number of persons in the Galaxy may be retrieved
    from the system. This statistic is one of the primary goals of the Census.
    Statistic: Planetary Total The total number of persons on any given planet
    may be retrieved from the system.
    This statistic is one of the primary goals of the Census.
    Statistic: Galactic Per Capita Income The average income per person in the
    Galaxy may be retrieved from the system.
    This statistic is required by Government economists.
    Statistic: Planetary Per Capita Income The average income per person on
    any given planet may be retrieved from the system.
    Some university researchers have asked for this statistic.
    plz help me to start with this problem
    Thanks

    plz help me to start with this problemRead the problem description and make a class design based on which class needs to do what. Take these "white cards" as basis. Think about the services your system has to offer. Make interfaces for those.

  • Escaping the pipe (|) character in java

    Hi,
    I am trying to run the following command in java
    ps -ef -o pid,args | grep init | grep -v grep
    The code is
           try {
                    Runtime rt = Runtime.getRuntime();
                    Process pr = rt.exec("ps -ef -o pid,args \\| grep init \\| grep -v grep ");
                    BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                    String line=null;
                    while((line=input.readLine()) != null) {
                        System.out.println(line);
                    int exitVal = pr.waitFor();
                    System.out.println("Exited with error code "+exitVal);*/
                } catch(Exception e) {
                    System.out.println(e.toString());
                    e.printStackTrace();
                }I am not able to run this command in Java. And, I guess the problem lies in escaping the pipe symbol. I am not sure how to do that. Can anyone please help me on that?
    Thanks,
    Juggie

    The problem is not escaping; it's that the pipe character is interpreted by the shell. You should be passing that command line to the shell, e.g. "sh ps -ef -o pid,args | grep ..."

  • Escaping the scan character for insert

    I wanted to do something like this in Lotus Notes:
    create table test(val varchar2(10));
    Create or replace procedure test1 AS
    begin
    insert into test values ('A& B');
    end;
    That is inserting the scan character '&'
    as part of the string
    but the ODBC driver always prompts me for a value.
    Notes string vsql='A& B';
    Any suggestion?
    Thanx

    Use a leading backslash. The \" escapes a quote.

  • Hi plZ help me to fix the error to my Blackberry 9300 Uncaught exception: java.lang.​NullPointe​rException

    ;   hi good plzz do help me to fix the error to my bb9300 i just update my bb9300 the the i see 
    error b    Uncaught exception: java.lang.NullPointerException    anyone here can help me to fix i appreciate

    I am guessing that you are not a Java developer, and it is not your application that is causing the Null Pointer Exception. 
    It sounds like you have updated the OS on your Blackberry device and one of the applications that you have installed is not coping with the upgrade.  
    If you press on an application icon and then that causes the error, then you know there is a problem with that application and so you need to report this to the developers of that application and get an updated version. 
    If this is happening when you restart your device, then it appears that one of the installed applications is failing at start up time and so it is not obvious which application.  So you need to see which of your applications doesn't appear to be providing all the functions it used to, and it would be a good guess that it is that application that is causing the problem.  Again you need to go back to the developer to get an update. 
    Let us know if that does not help.
    Also you have posted in the Java developer forum.  If this really is not your program causing the problem, then I suggest a better place to post a question relating to the 9300 is in the appropriate device forum here:
    http://supportforums.blackberry.com/t5/BlackBerry-​Curve/bd-p/Curve

  • HELP cant get past the start up screen

    Hi all!
    Today my computer was running super slow so I was forced to restart it by holding down the power button, however, when it began to start back up it never made it past the start up screen. Ive tried multiple things to try and get it to start up again, resetting it, keeping it plugged in in case maybe the battery was dead, and it wont even let me start it in safe mode. The light on the bottom right corner that I think normally lights up isn't lighting up now either, I dont know if I need a new battery or if the computer needs to be sent in to be repaired, or whats going on. Does any one have any suggestion about what I should do?? I'm sure there are multiple things im not trying because I'm unaware of them, so if any one has ANY suggestions that would help! thanks!

    If it is not seeing the WiFi network and will not connect you can try restarting that one iPad and then try again. If it still will not cooperate, activate it using iTunes on a computer and then troubleshoot the network connection after the device is up and running.

  • Plz help me for checking the Header record exists or not

    Hi
    How we check the whether the Header record exists or not.. if it is not exists i have raise an exception.. i wanna do this using UDF
    Plz help me  its urgent..
    venkat

    Maybe you should read all the responses in your earleir threads and read the rules of engagement also,
    /thread/117188 [original link is broken]
    Regards
    Bhavesh

  • Escaping the comment character

    I need to include the following in a string but can't get it to escape the comments characters.
    " select /*+ORDERED*/ field1 ... ";
    Thanks in advance,
    Grey

    The comment characters ("/*" and "*/") shouldn't need to be escaped within the context of a String value; is it the compiler that is having trouble with the value, or the database? What error messages are you receiving?

  • Using html in cf report builder and escaping the & ampersand character

    Some of the data we collect is entered via a WYSIWYG editor.  Therefore formatting such as bold, italic etc is translated into HTML.
    The text could also contain special characters/accented characters, again these are translated into their html equivalents.
    In CF Report Builder, I have set the XHTML Text formatting to TRUE.  However the report won't render the text in these boxes.  From what I can see it doesn't like the '&' character (ampersand).
    I have read elsewhere that report builder is limited in the characters etc that it can read and that I should translate the values.  I ended up doing this in the database to try and save some time.
    CREATE  OR REPLACE FUNCTION translatexhtmltoasci(var_text IN appendix3%TYPE)
      RETURN clob
    ISvar_translated_text clob;BEGIN
     select  replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(re place(replace(
      replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(re place(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(r eplace(replace
      (replace(replace(replace(replace(replace(replace(replace(replace(replace(
    var_text , chr(38) || 'lt;', chr(60))
      , chr(38) || 'gt;', chr(62))
      , chr(38) || 'euro;', chr(49792))
      , chr(38) || 'iexcl;', chr(49825))
      , chr(38) || 'cent;', chr(49826))
      , chr(38) || 'pound;', chr(49827))
      , chr(38) || 'curren;', chr(49828))
      , chr(38) || 'yen;', chr(49829))
      , chr(38) || 'brvbar;', chr(49830))
      , chr(38) || 'uml;', chr(49832))
      , chr(38) || 'copy;', chr(49833))
      , chr(38) || 'ordf;', chr(49834))
      , chr(38) || 'laquo;', chr(49835))
      , chr(38) || 'not;', chr(49836))
      , chr(38) || 'shy;', chr(49837))
      , chr(38) || 'reg;', chr(49838))
      , chr(38) || 'macr;', chr(49839))
      , chr(38) || 'deg;', chr(49840))
      , chr(38) || 'plusmn;', chr(49841))
      , chr(38) || 'sup2;', chr(49842))
      , chr(38) || 'sup3;', chr(49843))
      , chr(38) || 'acute;', chr(49844))
      , chr(38) || 'micro;', chr(49845))
      , chr(38) || 'para;', chr(49846))
      , chr(38) || 'middot;', chr(49847))
      , chr(38) || 'cedil;', chr(49848))
      , chr(38) || 'sup1;', chr(49849))
      , chr(38) || 'ordm;', chr(49850))
      , chr(38) || 'raquo;', chr(49851))
      , chr(38) || 'frac14;', chr(49852))
      , chr(38) || 'frac12;', chr(49853))
      , chr(38) || 'frac34;', chr(49854))
      , chr(38) || 'iquest;', chr(49855))
      , chr(38) || 'Agrave;', chr(50048))
      , chr(38) || 'Aacute;', chr(50049))
      , chr(38) || 'Acirc;', chr(50050))
      , chr(38) || 'Atilde;', chr(50051))
      , chr(38) || 'Auml;', chr(50052))
      , chr(38) || 'Aring;', chr(50053))
      , chr(38) || 'AElig;', chr(50054))
      , chr(38) || 'Ccedil;', chr(50055))
      , chr(38) || 'Egrave;', chr(50056))
      , chr(38) || 'Eacute;', chr(50057))
      , chr(38) || 'Ecirc;', chr(50058))
      , chr(38) || 'Euml;', chr(50059))
      , chr(38) || 'Igrave;', chr(50060))
      , chr(38) || 'Iacute;', chr(50061))
      , chr(38) || 'Icirc;', chr(50062))
      , chr(38) || 'Iuml;', chr(50063))
      , chr(38) || 'ETH;',

    I also stuck with this . Still no answer, no solution

Maybe you are looking for

  • Company code during MIRO

    Hi all, When ever i am doing MIRO system is asking enter company code in initial screen. I thought in the client it will ask first time But it is asking frequently whenever i enter MIRO What could be the issue ?? How to fix Thanks A.Gururajan

  • R12 Order Import: Supress Tax calculation

    Hi, I 've a requirement where I need to import order data from websphere commerce to Order management through the order interfaces. During the import, I need to suppress tax calculation in oracle as the price coming from web sphere already includes t

  • Can't select calendar with creating event on iPod touch

    Hi everyone - Thanks in advance for your help! Here's the deal: I have 4 calendars on Google Calendar. I use google's "Calaboration" to push those calendars to apple ical on my macbook pro. Those calendars then show up just as they should on my ipod

  • Wiki Server Users & Groups

    Simple question: It looks like the permissions settings for a wiki are wiki-wide, is that right? I need to restrict write-access to certain sections of my wiki to certain groups, but it looks like I'll have to make a separate wikis, each with it's ow

  • Can I spin down my internal disk? Open Firmware or terminal commands?

    Hello all, I have not been around here for a while, but I desperately need your help. Does anyone know how I can spin down my internal disk? Possibly with the terminal or Open Firmware? Does anyone know all the Open Firmware commands or where a list