Could Anybody tell me the VBscript for
REVERSE an Integer int reverse(int num) Ex:246 to 642
Answers were Sorted based on User's Feedback
Answer / naga siva sankar
val=246
valstr=cstr(val)
msgbox strReverse(valstr)
| Is This Answer Correct ? | 11 Yes | 5 No |
Answer / anil
Dim x,y,n
x=246
n=len(x)
for i=1 to n
y=mid(x,i,1)+y
next
msgbox y
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / arpita
n=123
Do While n>0
i=n mod 10
vstr=vstr&i
n=n\10
Loop
msgbox vstr
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / pankaj jaju
Function IntReverse(varNum)
Dim varTemp
If IsNumeric(varNum) = True Then
varTemp=0
While (varNum/10) > 0
varTemp = (varTemp*10) + (varNum Mod 10)
varNum = Int(varNum/10)
Wend
IntReverse = varTemp
Else
IntReverse = False
End If
End Function
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / kiran
dim number
number = inputbox("enter any number")
strlen = len(number)
for i = 1 to strlen
revnumber = mid(number,i,1) + revnumber
next
msgbox revnumber
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / manish
a = inputbox("enter a string or no.")
b = len(a)
For i = 1 to b
c = mid(a,b,1)
d = d & "" & c
b = b -1
Next
msgbox d
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / lak
n=Inputbox("Enter Number Series to reverse")
for i=1 to len(n)
x=n mod 10
temp=temp&x
n=n/10
n=fix(n)
next
msgbox temp
| Is This Answer Correct ? | 0 Yes | 0 No |
What is string concatenation function in VBScript?
How to remove the spaces in a string Ex: "this is apple"
Explain about tristate constants in vbscript?
Explain about constants in vb script?
wht must be the interview question on corinthian information technology solutions incorporated.
write a vb script to display the number is odd or even and whether it is divisible by 9 or not
Explain the .wsf files?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Which function is used in the vbscript language to convert the specified expression into a date type value?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
write a vb script to display the code "vbscripting" alphabet by alphabet(i e 1st v then b and up to g)
What is the difference between Javascript & Vbscript?