Find Out Length of an array without using Ubound?



Find Out Length of an array without using Ubound?..

Answer / usha

arr=array(10,20,30,40,50)
k=0
For each t in arr
k=k+1
msgbox t
Next
msgbox k

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

How do you create a recordset object in VBScript?

3 Answers  


Explain How do you create a recordset object in vbscript?

0 Answers  


where can i learn VB scripint ?

0 Answers   Satyam,


What is the difference between for loop and while loop?

0 Answers  


please can you help me to get a code of flames using a visual basic 6

0 Answers  






What is the difference between ByRef and ByVal. When to use ByRef and ByVal

5 Answers   Polaris, TCS,


Diff between web table ,datatable and data base (QTP)

2 Answers   TCS,


What is the main difference between function and sub-procedure?

0 Answers  


sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap

4 Answers  


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

0 Answers  


How can I access an object in another frame?

1 Answers  


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  


Categories