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 to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

0 Answers   College School Exams Tests,


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<<The data retrieved from data base >>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

0 Answers  


How you can call vbscript functions?

0 Answers  


Which in-built function is used to format the number in the vbscript language?

0 Answers  


how to increasing the numbers in a given text box please write a vb script

0 Answers  


what does create object actually do when you call it in vbscript?

1 Answers   Cap Gemini,


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

0 Answers   Quest,


* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  


What is string concatenation function in VBScript?

2 Answers  


What is the difference between for loop and while loop?

0 Answers  


How to Import data from a file (file is on the desktop) to the data table

0 Answers   IBM,


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

0 Answers  


Categories