How to Avoid Special Characters in string

Hai.
I want only Alphabets & Digits to be entered in to my string.No any other special characters except spaces.How can I do this? 
Solved!
Go to Solution.

MikeS81 wrote:
see the attached example.
I would allow a few more, e.g. 0 and 8 to allow editing of the entered string (backspace, cursor buttons, delete key, etc.).
Message Edited by altenbach on 11-21-2008 12:49 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
check_char_LV80MOD.vi ‏14 KB
FilterStringInput.gif ‏6 KB

Similar Messages

  • How to replace special characters in string.

    Hello,
    I want to replace special characters such as , or ; with any other character or " ".I find out there is no such function is java for this.There is only replace() but it accepts only chars.If anybody know how to do this?.
    Thanks,

    Hello,
    I want to replace special characters such as , or ;
    with any other character or " ".I find out there is no
    such function is java for this.There is only replace()
    but it accepts only chars.If anybody know how to do
    this?.
    Thanks,Can't you just do the following?
    public class Test
         public static void main(String[] args)
         String testString = "Hi, there?";
         System.out.println(testString.replace(',',' '));
    }

  • How to avoid special characters( #) via Utl_file Package

    Hello,
    I am using UTL_FILE package in order to read the text from a text file and insert this text into a table.
    But the text contain special character like #.
    This is the nature of this text data.
    For example the O/S text file contain the following text:
    TEXT:
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    How should we avoid reading the following line via UTL_FILE from the text file?
    So the text without these special characters will be inserted into a table.
    I wanted that these special characters would not be inserted into a table via UTL_FILE.
    What code I can add in my following routine in order to avoid the reading of special characters # or a following line from the text file?
    Thanks
    Sharbat
    UTL FILE Code:
    Declare                              
    l_file_handle UTL_FILE.FILE_TYPE;                              
    l_buffer VARCHAR2(4000);                              
    BEGIN                              
    l_file_handle := UTL_FILE.FOPEN('c:\temp', 'test.txt', 'r', 4000);                              
    loop
    UTL_FILE.get_line(l_file_handle,l_buffer);
    insert into TEST (text) values(l_buffer);
    end loop;
    exception
    when no_data_found then
    UTL_FILE.FCLOSE(l_file_handle);
    when others then
    if utl_file.is_open(l_file_handle)
    then
    utl_file.fclose(l_file_handle);
    end if;
    end;

    Hi,
    in Forms you can use text_io for reading text from a file. For questions related to database packages I suggest to post this question on teh database forum here on OTN.
    Frank

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • How to write special characters in PDF using iText

    How to write special characters encoded with UTF-8 in PDF using iText.
    Regards,
    Pandharinath.

    I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
    So can you describe your problem? That question doesn't make sense.

  • How to display special characters in Script...

    hi all,
    Can any one tell me how to display special characters in script...
    how to write in text element
    thanks in advance,
    prashant

    Hi Prashant ,
      What special characters would you like to include .
    There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert  , here you can find a lot of characters/symbols that can be included .
    Regards,
    Arun

  • How to avoid special stock indicator for intercompany sales transitions.

    Hi Friends
    I have an issue Intercompany sales .if I  enter intercompany plant(Delivering plant) in the sales order system is taking special stock indicator and looking for sales order stock.
    If I enter company code plant for sales from unrestricted stock, system is not taking special stock indicator.
    Please advice how to avoid special stock indicator for intercompany sales transitions.
    Thanks in advance.
    SRK

    Ravi,
    Special stock is generally determined by the MRP strategy group in the material master of the plant against which you place your order.  The strateg(ies) contained in the strategy group will determine the SO requirements type, which will in turn determine whether or not the order is 'account assigned' (special stock).  
    It is normal to only have one strategy contained in a strategy group.  However (and I seldom recommend this) SAP will support multiple strategies within one strategy group.  In this case, you could have both MTS and MTO orders against the same plant/material, by manually altering the requirements type in the sales order.  This scenario is usually difficult for a planner, and involves additional manual attention to make everything work.
    I suggest that your first avenue is to change the Strategy group in the material master of the delivering plant to one that supports MTS.  This has a big impact in Controlling and in Production Planning, so ensure that all affected functional groups are aware of what you are doing, and of the resulting changes that they will experience.  The transition from MTO to MTS must be carefully controlled.
    If you are not a PP expert, I suggest you consult with your local PP expert before embarking on this change.
    Best Regards,
    DB49

  • Replace special characters in String

    Dear Guru ,
    Does SAP provide the standard function that can replace the special characters in String ?
    For example :
    I have one template string : " & & & & & output(s) have not been processed yet ! " and five parameters : "P1" , "P2" , "P3" , "P4" , "P5" .
    And i would like to apply all parameters into the string to replace the "&" character . Is it possibile ?
    My idea is sourcing from the Message String that in tcode : SE91 .
    Thanks .
    Best Regards,
    Carlos Zhang

    Hi Carlos,
    I think instead of a standard FM you can write a one line command to do this job.
    E.g. 
    constant: str1 type string value 'output(s) have not been processed yet ! '.
    data: var1 type c,
             var2 type c,
             var3 type c,
             var4 type c,
             str    type string.
    concatenate var1 var2 var3 var4 str1 into str separated by space.
    So str will have the final value.
    Thanks,
    Mainak

  • How to remove special characters while typing data in edit cell in datagrid in flex4

    Hi Friends,
    I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
    Thanks,
    Anderson.

    Removes any characters from
    @myString that do not meet the
    provided criteria.
    CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
    RETURNS varchar(500) AS
    BEGIN
    While @myString like '%[^' + @validChars + ']%'
    Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
    Return @myString
    END
    Go
    Declare @testStr varchar(1000),
    @i int
    Set @i = 1
    while @i < 255
    Select
    @TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
    @i = @i + 1
    Select @TestStr
    Select dbo.GetCharacters(@TestStr,'a-z')
    Select dbo.GetCharacters(@TestStr,'0-9')
    Select dbo.GetCharacters(@TestStr,'0-9a-z')
    Select dbo.GetCharacters(@TestStr,'02468bferlki')
    perfect soluction

  • How to search special characters in a string

    Hi all,
    I want to search special characters in all string columns and all rows in the table.
    The table has about 5 string columns and about 5.000.000 rows. For each row and column, I have to search entries, which included special characters like ", !, ? or something else (f.ex. "Mama?Mia" or "!!!Hotel out of order!!!"). The problem, the character could stand at each position in the string.
    What's the best and most performance possibility to search such entries?? Is it possibility only by SQL; is there a special function for this?? Or must I use PL/SQL.
    Thanks for helping
    Dana

    HTH
    Laurent Schneider
    OCM DBA
    SQL> select * from z;
    S
    Mama?Mia
    a b c
    123
    SQL> select * from z where translate(s,'~ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz1234567890','~') is not null;
    S
    Mama?Mia
    SQL> select * from z where regexp_like(s, '[^[:alnum:][:space:]]');
    S
    Mama?Mia

  • How to convert special characters like #, &, etc occuring in the input string

    Hi,
              I am using method 'Get' to submit a form . When ever there is any
              special character like '#' in my input For example "033#Test", nothing
              gets posted beyond 033.
              Can any one please let me know how do I overcome this problem.
              Thanks in advance.
              Regards,
              Moin
              

    Moinuddin:
              It seems possible your browser may be confused by the fact that 033 is
              the octal representation for an ESCape character (Hex 1B). Try dropping
              the leading zero. In addition, it is usually better to represent special
              characters like the hash mark "#" using HTML character entities instead
              of literals, i.e. &#35; = hash mark
              Regards,
              Jim Brown
              Moinuddin Ahmed wrote:
              >
              > Hi,
              > I am using method 'Get' to submit a form . When ever there is any
              > special character like '#' in my input For example "033#Test", nothing
              > gets posted beyond 033.
              >
              > Can any one please let me know how do I overcome this problem.
              >
              > Thanks in advance.
              > Regards,
              > Moin
              Jim Brown
              Developer Relations Engineer
              BEA Support
              

  • How to query the data using control item avoiding special characters

    I had a small doubt in d2k.
    i created a emp block
    in that we r providing a control item for empno
    i am using that control item for querying emp details based on that control item value.
    if i am giving single quote in that control field it is querying for all the records in the emp block
    i am providing the where clause like this
    'empno like '||''''||:m_empno||''''
    can u pls clear this doubt for me.
    thanks in advance.

    one thing i forgot to add.
    we shouldnt use ascii values for the special characters.
    means we shouldnt use ascii values for restricting the sspecial characters.
    pls get me the reply as soon as possible
    thanq

  • How to add special characters in Flash CS3

    Hi, i need the help of some flash guru… these last weeks we were working with cloversites.com to build a community website… the interface is awesome etc etc however we in Malta have eight special characters (GCZ with a dot on top of them and an H with a second strikethrough). Those at cloversites wrestled with the problem, they could see the characters on their computers but when they entered the text in the site, flash couldn't render the special characters. Here is their message:
    I am extremely sorry about this, but we were unable to add in your characters. We attempted to add them into our software but they did not work. We worked on it all morning and realized that we need an extra add-on for our keyboards. Adding special characters is nothing new to us and have answered this request for many of our international users. For some reason, the Maltese characters did not work in our sites. For example, our "option-G" is the copyright symbol so it will need to be transferred over to international characters.
    Unfortunately, we thing that this has to do with Adobe Flash CS3. The software allowed me to embed the characters, but we were unable to render them on the web. Which led us to think it had to do with the version Adobe is running and its inability to render the text through its software on the web. None of the characters worked on the web, and it looks like its just an Adobe bug. So we are able to type and use the Maltese characters, but Adobe Flash is having trouble with them.
    Does anybody know of any possible solution?

    see if codepoints-to-string() is suitable for you ..
    Re: how to concatenate hexadecimal value to string in XQuery in PS Message Flow

  • How to handle special characters in Apex

    Hi ,
    In my application I have two regions - one is Report Region (Interactive Report) and other one is HTML region with two text items - Empno and name
    My Report has two columns Empno(varchar2) and Ename(varchar2).
    When I click the edit link in the report column, the empno should have a read only EMPNO value and ename is a text field with ENAME value.
    When I run my application I have encountered the following problems :
    1. if my empno has special characters like ' # ', the characters after that is not getting displayed
    2. if my empno has special characters like ',' - the characters after comma is treated as a next texitem value
    Here is my credential ,
    Workspace CTSAN_ORACLE_DB
    Username [email protected]
    Password lakshmi321
    URL : http://apex.oracle.com/pls/apex/f?p=9444:19:4292839314890159:::::
    Plz. suggest me how to rectify the above problems.
    Thanks,
    Anoo..
    Edited by: Anoo on Aug 13, 2010 3:05 AM

    Don't pass data values in URLs. Whilst it is possible to escape values to make them URL- and APEX parameter-safe, it is much better practice to avoid the problem altogether.
    Create a surrogate primary key on the table that is an immutable discrete numeric identifier and only use this as a URL parameter. In target pages/regions, use this PK value to retrieve the required data from the table.

  • How to preserve special characters in dynamic textfield for text comparison?

    The problem is as follows:
    Since I mostly develop for multiple languages I am forced to have dynamic textfields in my buttons which contain three lines (to account for the differnt text.lengths in different languages).
    I then populate the textfields with strings out of an array or xml and use the textfields contents later in my button class to execute different code depending on the textfields content.
    This works fine as long as I don`t use any special characters, like for example "\n".
    var labels:Array = ["\nLABEL1","LABEL\n\n2"];
    switch (e.currentTarget.txt.text)
                    case labels[0]:
                        doSomething();
                        break;
                    case labels[1]:
                        doSomethingElse();
                        break;
    shows the right thing in the button label (breaks the text were I want it)
    but stops to work
    (with htmlText &  <br> its the same)
    my workaround for the moment is to use filler spaces,
    var labels:Array = ["                   LABEL1","LABEL                                                                        2"];
    but that`s obviously ugly to setUp and requires a lot of trial/error to get it right for all languages.
    Any ideas how to bypass that?

    Bad habits die hard ;-)
    Weird enough spelling the problem out and getting this response from you cleared my head and  I finally got an easy solution.
    I simply attach a dynamic property to the movieclip, copy the array contents into them and instead of using the text-property for comparison I compare the MovieClips fresh created spectext property.
    Voila: Now I can be lazy without too much of a bad conscience.

Maybe you are looking for

  • Calculation of VAT on PO Sub Total

    Hi Friends,   We have requirement to calculate VAT on Basic+Customs Duty, As per TAXID (TAx Calculation Procedure for Indonesia) system is VAT on Basic Amount (First condition record) in PO. But we want on Basic +Customs, Can anybody suggest if way o

  • How to group data from two tables ?

    Hello, I have two tables and i want to group data from them but two table not linked. Table TEXT_IN : ID_IN (primary_key), DATE_IN Table TEXT_OUT : ID_OUT(primary_key),DATE_OUT Example : Result :Group Date and Order by IN,OUT And It seems a bit confu

  • Concert level mapping not working

    I've tried  to make my playback controls work on a concert level so I don't have to reset them to each patch. For instance, I tried setting a button to play but it doesn't work. Any ideas?

  • Having trouble with ore.tableApply() demo script

    I have verified that RQSCRIPTCREATE exists in SYS schema, and my demo user has RQROLE assigned, and I tried assigning RQADMIN as well (redundant). Any ideas? ORE> # O R A C L E R E N T E R P R I S E S A M P L E L I B R A R Y ORE> # ORE> # Name: table

  • Microsoft Office - Constant Update Problem  | NEED HELP

    Okay, so here is my problem - The website i have needs to be updated regulary by many different people and i know contribute can solve this. as the people who are updating this have no Web Experience, i thought using the Office Plug-in would help. Ca