How do you find out whether the string is Numeric or Alpha
numenric.Suppose..'QTP is an automation testing tool 12345'
How should I know it is alphanumeric.Can any one please
write the code for this
Answer Posted / a.thirumalareddy@gmail.com
use this function it will help u..
Function IsAlphaNumeric()
If IsNull(str) Then str = "QTP is an automation testing tool 12345"
Dim ianRegEx
Set ianRegEx = New RegExp
ianRegEx.Pattern = "[^a-z0-9]"
ianRegEx.Global = True
ianRegEx.IgnoreCase = True
IsAlphaNumeric = (str = ianRegEx.Replace(str,"QTP is an automation testing tool 12345"))
msgbox IsAlphaNumeric
End Function
call IsAlphaNumeric()
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How to carry out bit map check points in QTP
If created one virtual object? Next time I changed the window position will it work?
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
Is text area check point supports for web applications?
What is contained in the object repository?
How to use reporter.report event in qtp ?
How does qtp identify gui object?
How you debug your script?
What are the differences between quicktest professional (qtp) and winrunner?
To which environments does quicktest professional supports?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
How to record a qtp script ?
What is the syntax for how to call one script from another?