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 |
Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME
What are the different types of loops available in the vbscript language?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
Which function allows you to instantiate an object given its programmatic identifier or progid?
What are lbound and ubound in the vbscript language?
i have developed the below QTP script to count the no of items available in the web list "Select a product" in www.bankrate.com and also want to print what are the items??? can any one help me to rectify the below script??? SystemUtil.Run "iexplore.exe","www.bankrate.com" a=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetTOProperty("items count") msgbox a Dim List() ReDim List(a-1) For i = 1 To a List(i-1)=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page ("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetItem(i) Print List(i-1) Next
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
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
How will you get the largest subscript of an array in vbscript?
What are the advantages of vbscript?
What is sql loader? Explain the files used by sql loader to load file?
What is purpose of scripting.filesystemobject class in vbscript?