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 |
What is the difference between browser sync and page sync in QTP?
What does it mean when a check point is in red color? What do you do?
Whenever i'm running 3 diffrent scripts in a Test Batch Runner as a batch. its not showing any result. QTP only runs all the scripts n nothing else. B4 running the test batch i have done all the settings, But still its not working.
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
Hi, Am trying to download QTP 8.2 version.its not supporting Windows Vista.Can you please help me out from this.Which QTP version supports this. Thanks in Advance.
what is the extension of new local object repository?
how we can do web browser using parametarisation in QTP ?
what is the difference between built-i function and In-built function?
What is test object model in quicktest professional?
Can we write class for vb script in Quick Test Professional?
How do we create and run the scripts with out using O.R. ?
What is Object Spy in QTP?