Could Anybody tell me the VBscript for
REVERSE an Integer int reverse(int num) Ex:246 to 642
Answer Posted / 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 |
Post New Answer View All Answers
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me
What are the naming conventions while declaring a variable in the vbscript language?
Explain the constants in vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
What are the differences between sub procedures and function procedures?
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Is VB Script Case sensitive or Case insensitive?
What is the output of a + b in vbscript if a = 5 and b = 10?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
How many types of procedures are available in the vbscript language?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
What is select case statement?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
How can you create a file object to work with the files in the vbscript language?