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 Mandatory and BaseFilter Properies..Anybody please answer me..Thanks in Advance
Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.
If a object property is changed in the application. where it should be updated in QTP... Pls anybody can give the answer.. Thanks in advance...
WHICH functionalities of QTP used in Banking project?
What is Environment Variable and when we apply this in QTP?
How can i count "spaces" in any sentence or a string if suppose " It is a Testing question" Here we have 4 gaps(spaces) Is there any function to find out spaces between words
What will be the script for recovery scenerio.plzanyone give ans with aexample related to banking project
Hi all, Recently i faced this question in infosys What is QTP architecture?? Is Architecuture and Framework are same?? Can someone please give clear understanding of this.
How to handle the exceptions using recovery scenario manager in QTP?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
QTP script is not working on other's machine..
Can we add the objects of an application dynamically?
2 Answers KEN Group, LD College,