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

There are 5 web pages.write a script to click the button on 4th web page.

3472


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?

1051


How to Import data from a file (file is on the desktop) to the data table

2046


Why is error handling required?

1073


filter the array values without using filter function?

2164


Anyone have qtp11.0 crack?

2892


How to open a file. What is the perpose of true and false mode there?

1164


Explain the asc function?

988


Explain about vb script?

1267


Explain sga memory structures?

1079


give me any information abou vb script books learn quckly

2262


What is the use of the formatdatetime function in the vbscript language?

1071


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

2031


Mention what is variant in vbscript?

985


What is byref and byval parameters in vbscript?

1126