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 |
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What are class properties?
what is the use of QCUtil? explain with one example?
how to find number of characters(letter a) in the sentence Rain Rain Go away
hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time..and what property we should take while we r using descriptive programming for a link..
What is the event handling in vbscript?
write a vb script to display the code "vbscripting" alphabet by alphabet(i e 1st v then b and up to g)
Which operator can be used to check if two numbers are equal or not in vbscript?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
How to assign a numeric value to a variable?
Which is the default Data types in VBScript?
how to display all the links in one page using vb script in qtp.
1 Answers DST Global Solutions,