. 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
after medical test,when will be the police verification
Explain the operator precedence in vb script?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Explain about scrrun.dll in vbscript?
Explain vbscript in detail?
Which constant is used for print and display functions and works as same as pressing enter key?
while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans
How to open excel in vb script?
What is select case statement?
How will you get the last occurrence of one string within another string using vbscript?
How to declare an array in vbscript?
How can you create a file object to work with the files in the vbscript language?
Description.Create
Write a code to print numbers from 5 to 0?
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