Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how to set one column as primary key in QTP and fetch values accordingly

2263


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3410


What are the rules to name variable in vbscript?

1021


How will you get the largest subscript of an array in vbscript?

1101


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3692


What is the purpose of on error resume next statement?

930


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.

2051


How can you destroy an object in vbscript?

1057


What are events in the vbscript language?

1050


What is the difference between vb debugger and the script debugger?

1071


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.

2013


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

1021


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

986


how to operate webobjects in a webpage using getobject function and then using generic methods?

3030


What if you do not specify anything when you call a procedure?

1051