suppose im having a string wipro123xyz i need to get the
value 123 only from the string today 123 will be in the
middle from tommorow it will be changing to front or back
how to get the no if it changes continously?

Answer Posted / sailaja

txt="123wiproxyz"
mypos=instr (1,txt,"123")
msgbox mypos


k=mid ( txt,mypos,3)
msgbox k

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

572


How to use debug tools?

2185


Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln

1382


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

1385


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1706






Explain quicktest professional (qtp) testing process?

528


Which scripting language used by quicktest professional?

519


What is the default add-ins in qtp?

548


Analyzing the checpoint results?

591


Connect to QC using AOM.

1223


Did the scripts need lot of maintenance? If yes, why?

3285


Hoe can we do retesting using functions please give the code for it using login page

1553


What are the differences between qtp and winrunner?

517


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1554


What is a checkpoint? How many check points are there in qtp?

517