How to generate 3 digit random number?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prathyusha
Randomize
intmax=1000
intmin=300
rNum=Int((intmax-intmin+1)*Rnd+intmin)
MsgBox rnum
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / eswar
For i=1 to 3
x = RandomNumber(1,9)
y=y&x
Next
MsgBox y
| Is This Answer Correct ? | 0 Yes | 1 No |
1. How do declare public variable in vb scripts?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
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?
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com
Explain about operator precedence in vb script?
in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script
what is the standards used for writing the script in QTP
HOW TO OPEN NEW TAB USING VB SCRIPT IN QTP?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
where can i learn VB scripint ?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
What is the difference between Javascript & Vbscript?