how to find a data that is pure string   or not in ?

Posted on 2012-08-26
Last Modified: 2015-05-23
how to check IsPureString() function in ?

if  (keycode>=65 and keycode<=92 )or (keycode >=97 and keycode<=122)  then

this is to validate ispurestring or not.    except this idea, what are the ways and libarary functions  available in  ?
Question by:softwareachiever
    LVL 69

    Expert Comment

    by:Éric Moreau
    there is not much other ways.

    one thing you need to be cautious, from your code you seem to use the keypress (or keydown) event. a user would be able to paste a numeric value if you only handle this event
    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP
    purestring() or ispurestring() is not a .net function

    what are the ways and library functions  available in  ?

    There are thousands of built-in functions available in .net, depending upon which version of .net you are referring to..

    if (keycode>=65 and keycode<=90)or (keycode >=97 and keycode<=122)

    Don't know where you got 92 but 90 is 'Z'
    LVL 20

    Expert Comment

    Is this an ASP.Net application you are using or a Windows application?
    LVL 9

    Accepted Solution

    There is a function isLetter
    You can loop through your string and verify that each character is letter or not.
    Details of the function:

    Author Comment

    my application is windows application
    LVL 9

    Expert Comment

    You can find code in the link I have provided.
    LVL 69

    Expert Comment

    by:Éric Moreau
    in the link provided by darjimaulik, click the VB tab.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now