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
write a program to display configuration of a local system with the help of vb script.
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
When are redim statement and preserve keyword used in the vbscript language?
How to make sure that items in a wintree are sorted al?
How will you get the largest subscript of an array in vbscript?
How to pass argument by reference to a function in vbscript?
Explain the filter expression?
what is resorceallocation
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click
Explain about the extension .hta?
wht must be the interview question on corinthian information technology solutions incorporated.
Why is the use of exit do or exit for statements within loops discouraged?
Explain the adodb.stream class?