. 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
Which keyword is used to declare a variable in the vbscript language?
What are the special sub-types in vbscript?
how to acces the remote mechine using vb cript(QTP)
How to throw an error in vbscript?
How will you compare two strings in vbscript?
Why is it recommended to close the database connection every time after the work is completed?
regular expression that will recognize a browser as long as its name property starts with mybrowser
Explain about .wsf files?
what types of bugs will we find out in banking projects for automation testing?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
How many types of operators are available in the vbscript language?
what is the object hyrarchy in QTP for a web based application
Mention what is the technology used by vb script?
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
How to create a cookie using vbscript?