write the code to reverse a string without using Strrev
built in function.
Answer Posted / uday
All the above answers uses one the other string functions
like mid, len, instr.
But we can reverse a string without using any string functions.
Looks interesting? Try the below code:
str="Hello Uday"
Set regExpObj=new RegExp
regExpObj.pattern="[a-z A-Z]"
regExpObj.global=true
Set matches=regExpObj.execute(str)
For each letter in matches
result=letter.value&result
Next
print result
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
wht type of User defined functions or Java Releated functions Do we write in VB scripting
How to find a window is minimized or not
How you know that a test case is a regression test case
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
Is virtual object supported in low level recording mode?
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
How to start recording using quicktest professional (qtp)?
What are the views available in qtp?
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...
What is the difference between run time object and test object in QTP?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
If created one virtual object? Next time I changed the window position will it work?
how did u use automating testing tools in ur job?