How to generate 3 digit random number?
Answer Posted / nazeer ahmed
dim upperlimit
dim lowerlimit
dim randomnumber(4)
upperlimit = 500
lowerlimit = 1
For x = 0 to 4
randomize timer
randomnumber(x)=Int((upperlimit-lowerlimit+1)*Rnd)+lowerlimit
msgbox randomnumber(x)
Next
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
What is the scope of a constant declared using public?
What is event handling in vbscript?
What are string functions in vbscript?
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<
How to Import data from a file (file is on the desktop) to the data table
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
Which loop is used in case of arrays in the vbscript language?
Differentiate javascript and vbscript?
when we use filter funtiom invb script(QTP)
hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?
Explain about filter expression?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Can automation testing find ssame no. of bugs what we can find by manual testing?