Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / anil
input="421"
Dim arr(3)
arr(0)="4"
arr(1)="1"
arr(2)="2"
Set arrlist=CreateObject("system.collections.Arraylist")
For i=0 To UBound(arr)-1
arrlist.add arr(i)
Next
arrlist.sort
For i=0 To UBound(arr)-1
c= arrlist.item(i)
temp=temp&c
next
MsgBox temp&input
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How should i Create Email invite with server-side Coding?
How to open excel in vb script?
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?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
where can i learn VB scripint ?
What is Procedure or Subroutine in VB Script?
What are the special sub-types in vbscript?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
How to capture a runtime error in vbscript?
What are class variables?
What is vbscript language used for and which earlier language is it modeled upon?
How to open browser in vb script?
What are the advantages of vbscript?
Why is it recommended to close the database connection every time after the work is completed?
In html file what is an ideal position to include vbscript?