Could Anybody tell me the Script for REVERSE an Interger
int reverse(int num) Ex:246 to 642.. Thanks in Advance.
Answers were Sorted based on User's Feedback
x=246
y=len(x)
For i=y to 1 step-1
c=mid(x,i,1)
d=d&c
Next
msgbox d
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vineet sharma
convert int to string first using cstr() function. then use strreverse() function to reverse the string and then use cint to conver back the string to integer.
| Is This Answer Correct ? | 0 Yes | 0 No |
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What are string functions in vbscript?
How will you get the smallest subscript of an array in vbscript?
Mention what is select case statement?
when you use For Loop, While..do, do..while? at what situations which loop will use.
In our application qtp unable to indentify the menu items,we tried number of times to add objetcs into object repository but fail. through normal recording mode only objects going to add into repository but while running same recording script qtp showing a error like " unable to indentify the object". in repository there is no any properties and pro values for that object and also i tried with virtual object config also unable to find the object in application and in repository. Then what i have to do to identify menu objects????? can anybody hell me pls..............
How you can call vbscript functions?
What is the difference between javascript and vbscript?
how to find greatest of n numbers!
What are the different types of operators and their order of precedence?
Explain some uses of vb script?
write a vb-script code to delete all the mails in my gmail in the year 2011