write the code to reverse a string without using Strrev
built in function.
Answers were Sorted based on User's Feedback
Answer / fatekiller
code to reverse a string
first i wrote a function and then called that function to
reverse a string.
mystr=inputbox("enter the string")
ms=revstr(mystr)
print(ms)
Function revstr(mystr)
L=len(mystr)
revstrr=""
For i=0 to L-1
c=mid(mystr,L-i,1)
revstrr=revstrr&c
Next
revstr=revstrr
End Function
This program is written using the concept of MID function.
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / m.bindu kumar
'Code to reverse a string without using strrev using
functions
Function stringreverse(a)
strlen=len(a)
For i = strlen to 1 step -1
strrev=mid(a,i,1)
stn=stn+strrev
Next
msgbox stn
End function
Dim strrev,strlen, strname,stn
a=inputbox ("enter the string to reverse")
stringreverse(a)
| Is This Answer Correct ? | 3 Yes | 6 No |
Answer / ram
x="abcdefg"
v= len(x)
For i=1 to len(x)
newstr=mid(x, v,1)
a=a&newstr
v=v-1
Next
msgbox a
| Is This Answer Correct ? | 2 Yes | 5 No |
We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?
how to get column count in datatable
Hi guys, can anyone explain me whats the method for reporting the QTP test results to teamlead or non-QA member (developer/PM)? Thanks in Advance!!!!!
Hi every body, I am new to QTP.pls help me if anybody knows the solution. Here is my doubt: I have 3 excel sheets in my local drive out of which one is password protected and i want to get the data of all these xL's either by importing or by reading the data finally i have to update this data in the website.(and the site is secured site) I tried by importing all XL"s one by one but couldn't do so. plss send me the code or atleast suggest me the approach. Thanks in Advance Padmaja
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
How qtp identifies objects?
Do we have to Enable Smart Identification while running Or will it automatically be enabled ?
how will you check how many members visited the website www.infosys.com?
I am using DataTable.ImportSheet method to import the data from an excel sheet to the Runtime DataTable of QTP. here is my piece of code DataTable.import("c:\DataSheet.xls","Members","Members") The first row headings of Members sheet of DataSheet.xls and Members sheet of QTp are matched. but the QTP is taking very long time(approximately half an hour) to import the data into runtime datatable even though the DataSheet.xls has one or two rows in it. Please let me know why this is happening and is there any alternative for impoting the data into runtime datatable of qtp ?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
If 2 gmail browsers are opened in our system, how to enter the mail id and password into second browser by using discriptive program?
how to count the word "IS" is repeated in the application using DP
3 Answers DST Global Solutions,