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

what is event handling?

0 Answers  


I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh

3 Answers  


filter the array values without using filter function?

0 Answers   CSS Corp, WQED,


Difference between Do while loop and while wend loop

1 Answers  


Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario

4 Answers   AppLabs, IBM,






write a vb script to generate 3*3 matrix

2 Answers  


print the array values in ascending order?

2 Answers   CSS Corp,


How to Convert Hex color code to color name in VB Script?

0 Answers  


What if you do not specify anything when you call a procedure?

0 Answers  


Explain the .wsf files?

0 Answers  


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

0 Answers   Livetek,


How to add actions in driver script to run those actions in QTP?

0 Answers  


Categories