Micro Focus QTP (UFT) Forums

Full Version: VB script Code.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
Can anyone please help me in writing the vbscript code for following output.

user will enter some no., according to that following should print.

for Eg:

No=5

1
12
123
1234
12345

above should be the output.

Thanks.
Hi
Please find the below code


Code:
n = inputbox("Enter a number","Printing the output")
For i=1 to n
x = x&i
print x
Next

Thanks
Tanya
Thanks Tanya,
Good one.. Cheers!