write a vb script to generate 3*3 matrix

Answer Posted / smita

dim varr(2,3)
for i=0 to ubound(a,1)
for j=0 to ubound(a,2)
varr(i,j)=inputbox("enter the value")
next
next
for i=0 to 2 step 1
for j=0 to 3 step 1
vstr=vstr & varr(i,j) & " "
next
vstr=vstr & vbnewline
next
msgbox vstr

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the arrays in vb script?

603


Is vbscript language a case-sensitive language and what does it mean?

554


What are string functions in vbscript?

664


What is the difference between for loop and while loop?

560


What is the use of the date function in the vbscript language?

573






What are keywords in the vbscript language?

531


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?

532


What is vbscript procedures?

606


What is the use of the recordset object and which statement is used to create such an object?

535


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

1661


Which function allows you to instantiate an object given its programmatic identifier or progid?

566


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1794


Mention what is the main difference between function and sub-procedure?

557


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.

1748


What is sql loader? Explain the files used by sql loader to load file?

633