Link to home
Start Free TrialLog in
Avatar of softwareachiever
softwareachiever

asked on

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

how to check IsPureString() function in vb.net ?

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 vb.net  ?
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

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
purestring() or ispurestring() is not a .net function

what are the ways and library functions  available in vb.net  ?

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'
Is this an ASP.Net application you are using or a Windows application?
ASKER CERTIFIED SOLUTION
Avatar of darjimaulik
darjimaulik
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of softwareachiever
softwareachiever

ASKER

my application is vb.net windows application
You can find vb.net code in the link I have provided.
in the link provided by darjimaulik, click the VB tab.