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
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com
if there is a web table of having row and colmns.a button is placed at 2nd row's 3rd column which is worked for both edit and delete..how to write script for the button to test both operation on the web table using desriptive programing.. plz help me on script wheather using getroproperty Q2)what is the command for taking valiue from a web table in qtp
How can you pass value one action to another action?
What are the properties you would use for identifying a browser and page when using descriptive programming?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
What are the different types of action?
Define object spy ?
What is the script for database check point, bitmapchek point, regular expression ?
Where we can use the analog mode and where we can use the low – level mode?
Dis advantages of XML checkpoint ?
can any one say that where we can download the QTP trail version ??????????
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
What is the new version of qtp which is recently released in the market?