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.
Answer Posted / 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 |
Post New Answer View All Answers
Hi All, How to get repeated word in string . Thanks Balaji
Explain different recording modes?
hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u
How many number of actions possible in qtp?
What are the automation metrice in your project?
How to open a new test using quicktest professional (qtp)?
How many types of recording modes are there?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
How do you capture tooltip using QTP?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
Explain how to use QTP to check broken links on a page?
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?
How is a Step generator used in UFT?
Which functionalities of QTP used in banking project? pls any say answer?
Discuss quicktest professional (qtp) environment?