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


Please Help Members By Posting Answers For Below Questions

Hi All, How to get repeated word in string . Thanks Balaji

938


Explain different recording modes?

585


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

1329


How many number of actions possible in qtp?

606


What are the automation metrice in your project?

1715






How to open a new test using quicktest professional (qtp)?

531


How many types of recording modes are there?

597


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

557


How do you capture tooltip using QTP?

636


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

1503


Explain how to use QTP to check broken links on a page?

587


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?

1377


How is a Step generator used in UFT?

661


Which functionalities of QTP used in banking project? pls any say answer?

1445


Discuss quicktest professional (qtp) environment?

578