. 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
There are 5 web pages.write a script to click the button on 4th web page.
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?
How to Import data from a file (file is on the desktop) to the data table
Why is error handling required?
filter the array values without using filter function?
Anyone have qtp11.0 crack?
How to open a file. What is the perpose of true and false mode there?
Explain the asc function?
Explain about vb script?
Explain sga memory structures?
give me any information abou vb script books learn quckly
What is the use of the formatdatetime function in the vbscript language?
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?
Mention what is variant in vbscript?
What is byref and byval parameters in vbscript?