print the array values in ascending order?
Answer Posted / rajanikanth
Option Explicit
Dim a,i,b,j,temp
a=Array(30,70,10,60,90,20,50,80)
For i=0 To UBound(a)
For j=0 To UBound(a)
If StrComp(a(i),a(j),1)<0 Then
temp=a(i)
a(i)=a(j)
a(j)=temp
End If
Next
Next
For i=0 To UBound(a)
MsgBox a(i)
Next
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how to set one column as primary key in QTP and fetch values accordingly
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
What are the rules to name variable in vbscript?
How will you get the largest subscript of an array in vbscript?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
What is the purpose of on error resume next statement?
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
How can you destroy an object in vbscript?
What are events in the vbscript language?
What is the difference between vb debugger and the script debugger?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
how to operate webobjects in a webpage using getobject function and then using generic methods?
What if you do not specify anything when you call a procedure?