int a=4857 i need output as 7584.without using any inbuild
function?
Answers were Sorted based on User's Feedback
Answer / r.singh
varnum=4857
vartemp=0
while(varnum/10)>0 then
vartemp=(vartemp*10)+(varnum mod 10)
varnum=varnum/10
wend
rev=vartemp
msgbox rev
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / bantanahal haribabu
s="12345"
While int(s)>0
n=s mod 10
x=x&n
s=int(s)/10
Wend
msgbox x
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / testengineer
Thanku Mr.R.Singh,Miss Sumathi and Mr. Bantanahal Haribabu
But Could u please confirm me whether "MOD,INT,LEN" are Inbuilt Functions are not?
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anil
s=4857
For i=Len(s) To 1 step-1
c=Mid(s,i,1)
temp=temp&c
Next
MsgBox temp
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sumathi
var=4857
For i=1 to len(var)
x=var mod 10
num=num&x
var=var/10
var=fix(var)
Next
print num
| Is This Answer Correct ? | 1 Yes | 0 No |
how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.
How will you get the largest subscript of an array in vbscript?
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Explain about scrrun.dll?
Mention what if you do not specify anything when you call a procedure?
Explain the support of asp for vb script functionality?
hey please tell me how to retriev data from excel sheet which puts the login name and password in the application? plz send me the code..please help me
Explain the .wsf files?
Is VB Script Case sensitive or Case insensitive?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
how to delete folder test3,test4 and test5 using vbscript?
write a vb script to display calculator using case statement?