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

1. How do declare public variable in vb scripts?

0 Answers  


how to find number of characters(letter a) in the sentence Rain Rain Go away

4 Answers  


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

0 Answers  


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

0 Answers  


How to find a latest file from any folder

3 Answers   Ness Technologies,






How will you compare two strings in vbscript?

0 Answers  


How do you create a recordset object in VBScript?

3 Answers  


What is byref and byval parameters in vbscript?

0 Answers  


How can you create an object in vbscript?

0 Answers  


accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  


input values to accept 2 numbers & print the product, difference and sum using switch case

1 Answers   CSC,


how to write function to validate the number of characters entering into the text box?

2 Answers   TCS,


Categories