Given a string variable contain a full name (last name,
first name), using vbscripting, how can you extract first
and last name and save them into two different variables.
Answers were Sorted based on User's Feedback
Answer / uday
Use split method.
Here is the ex:
str="Uday,Anem" 'where Uday is first name and Anem is last
name
arr=split(str,",")
firstname=arr(0)
lastname=arr(1)
msgbox(firstname+" "+lastname)
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / naveen arora
fullname = "Arora Naveen"
last = Left(fullname, InStr(1, fullname, " "))
print last
first = Right(fullname, InStr(1, fullname, " "))
Print first
| Is This Answer Correct ? | 5 Yes | 1 No |
Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties..
what is exact difference between smoke and sanity testing?
how to associate object repository during runtime in qtp
How many function you use in your application?
what is objectidentification?
Have you faced any problems with object repository?
Will down time for server and content maintenance/upgrades be allowed? how much?
how to open Excel sheet & write in it & save it?
1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?
How to capture checkbox properties when properties of the object keep changing on relogin to the application.
How to Install QTP on Citrix Environment? Possible send me the installation steps.. That would be great help
How to check the URL using Automation tool QTP