Write a program to create a Dynamic array of size 5 elements and display all the elements.



Write a program to create a Dynamic array of size 5 elements and display all the elements...

Answer / sunita001

redim my array(4)
my array(1)="23"
my array(2)="30"
my array(3)="21"
my array(4)-"12"
redim preserve my array(6)
my array(5)="43"
my array(6)="55"
msgbox my array(5)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More VB Script Interview Questions

How will you get a subset of a array in vbscript?

0 Answers  


what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use?

4 Answers   Perot Systems,


Explain about scrrun.dll in vbscript?

0 Answers  


How to create a cookie using vbscript?

0 Answers  


Mention what is variant in vbscript?

0 Answers  






Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?

2 Answers   HCL,


Explain the filter expression?

0 Answers  


How do you get the value of a combo box in Javascript?

2 Answers   Aspire,


Mention when to use function procedures and what are its characteristics?

0 Answers  


how to store charecters of HARIBABU Using arrays

4 Answers   Cap Gemini,


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

0 Answers   CSC,


Mention what is the use of option explicit in vbscript?

0 Answers  


Categories