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
How to pass argument by reference to a function in vbscript?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
What purpose does ‘on error resume next’ serves?
What is the difference between a dictionary and an array?
What is select case statement?
Mention what are the rules to name variable in vbscript?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
Which constant is used for print and display functions and works as same as pressing enter key?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
Is vbscript a case-sensitive or case-insensitive?
Which date function is used in the vbscript language to find the difference between the 2 dates?
What is the use of the recordset object and which statement is used to create such an object?
If else for do while select in vb script?
What is Procedure or Subroutine in VB Script?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?