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
Difference between test object and run time object?
what is the difference between modular framework & datadriven framework
Is QTP supports Unix. If yes, then how the test automation is done?
What is object spy in quicktest professional (qtp)?
What are main panes available in qtp test browser?
i can done the project with QTP in that time i can say how many members in my team size?
hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
what is the difference btn risks & Therads in the Test plan documentation?
What are the different types of qtp test assets and their extensions?
How to use reporter.report event in qtp ?
Explain the concept of object repository and how QTP recognizes objects?
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
images are dynamically changes how to compare two images with out using the bitmap
When to use shared and local object repository?