Answer Posted / venkatesh
option explicit
dim myarray,max,i
myarray = array( 34,23,45,67,12 )
max=myarray(0)
for i=0 to ubound(myarray)
if max < myarray(i) then
max=myarray(i)
end if
next
msgbox "max number is : "&max
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Mention what if you do not specify anything when you call a procedure?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
Mention the environments where vbscript could be run?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
How will you get the exponent of the given number in vbscript?
What is difference between vbscript and vba?
How will you convert a string to upper case string using vbscript?
what is event handling?
Mention how to access array data?
Explain a few date functions in vbscript
What is vbscript procedures?
What is the use of option explicit statement?
Explain some uses of vb script?
What are the data types supported by vbscript?
How will you get the largest subscript of an array in vbscript?