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
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
what is the difference between modular and data and keyword driven framework
How to create a cookie using vbscript?
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com
Explain sga memory structures?
Which in-built function is used to format the number in the vbscript language?
When to use function procedures and what are its characteristics?
Mention what is byref and byval parameters in vbscript?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
Why is error handling required?
filter the array values without using filter function?
Why to use option explicit in vb script?
What is purpose of scripting.filesystemobject class in vbscript?
i need to sort the data using qtp script for this how i need to write a qtp script
Mention what is the technology used by vb script?