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...

. Program for sorting of numbers in vb script?

Answer Posted / amrita

We will assign the series of numbers in array then will the sort that. Below is the code:
a = array(3,4,9,2,7,1)

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)

print a(i)
'It will print 1,2,3,4,7,9

Next

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

after medical test,when will be the police verification

2122


Explain the operator precedence in vb script?

1028


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

930


Explain about scrrun.dll in vbscript?

1052


Explain vbscript in detail?

1016


Which constant is used for print and display functions and works as same as pressing enter key?

962


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

2021


How to open excel in vb script?

989


What is select case statement?

1005


How will you get the last occurrence of one string within another string using vbscript?

1147


How to declare an array in vbscript?

1234


How can you create a file object to work with the files in the vbscript language?

918


Description.Create

2606


Write a code to print numbers from 5 to 0?

1094


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1682