GET WHETHER THE GIVE NUMBER VALID OR NOT IN BETWEEN THE
GIVEN RANGE?IN VB SCRIPT(QTP)
Answer Posted / arun
'the above code was not working fine so i modified that
Validinteger 20,1,100
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
msgbox "Valid Number Thank You"
Else
msgbox "You must enter an integer between " & iMin &" and " & iMax
End If
Else
msgbox "You must enter a whole number"
End If
Else
msgbox "You must enter a number"
End If
End Function
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Difference between test object and run time object?
What are the differences between quicktest professional (qtp) and winrunner?
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?
Where we can use the synchronization?
How you can make an action as re-usable action?
What are the types of properties that quick test learns while recording?
how to find that tools work well with your existing system?
What is Test Fusion Report in QTP?
What is test object model in quicktest professional?
Where we can use the analog mode and where we can use the low – level mode?
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
Dis advantages of XML checkpoint ?
Give me some real time point of way where exactly we can conduct audits?
give me the code to save all messages of inbox of gmail into a folder and notepad
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?