1
2 2
3 3 3
4 4 4 4
5 5 5 5 5


how to find using vbscripting

Answers were Sorted based on User's Feedback



1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting..

Answer / abbas khan

Option Explicit
Dim Var, i, j


For i = 1 To 5 Step 1
For j = 1 To i Step 1
Var = Var &i &Space(3)
Next
Var = Var &vbNewLine
Next

Msgbox Var

Is This Answer Correct ?    1 Yes 0 No

1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting..

Answer / sumathi

n=inputbox("enter a number")
For i=1 to n
x=" "
For j=1 to i
x=x&vbtab&i
Next
print x
Next

Is This Answer Correct ?    2 Yes 2 No

1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting..

Answer / prathyusha

for i=1 to 5
for j=1 to i
n=n&i
next
v=v&vbcrlf&n
next
msgbox v

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

0 Answers  


Explain the adodb.stream class?

0 Answers  


We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below

0 Answers  


Does VB/Win make standalone .EXE files?

0 Answers  


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

0 Answers  






Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

0 Answers   Quest,


Which operator can be used to change the value of the operand or change the state of the condition?

0 Answers  


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

0 Answers   GE, iGate,


write a program to display configuration of a local system with the help of vb script.

0 Answers  


What are events in the vbscript language?

0 Answers  


Write a Script for ATM in QTP

0 Answers  


Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

0 Answers  


Categories