GET WHETHER THE GIVE NUMBER VALID OR NOT IN BETWEEN THE
GIVEN RANGE?IN VB SCRIPT(QTP)
Answer Posted / guest
Function ValidInteger(sNumber, iMin, iMax)
Dim iNumber
' Is it a number?
If IsNumeric(sNumber) Then
' Is it an integer?
If InStr(sNumber,".") = 0 Then
' Is it in the correct range?
If CLng(sNumber) >= iMin And CLng(sNumber) <= iMax Then
ValidInteger = "Valid Number Thank You"
Else
ValidInteger = "You must enter an integer between " & iMin &
" and " & iMax
End If
Else
ValidInteger = "You must enter a whole number"
End If
Else
ValidInteger = "You must enter a number"
End If
End Function
msgbox ValidInteger(9, 1, 10)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How many add-ins comes by default with quicktest professional?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What is a programmatic description?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
how to test use the quality control .how to verify the image verification
Explain different types of checkpoints?
What is the use of ordinal identifier in qtp?
How to associate function library at a run time?
How to find array size in qtp?
What are the different types of functions available in qtp and explain ?
What is the default add-ins in qtp?
In Remote acess server how u run a test?
What is data driver in qtp?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.