Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to handle dynamic objects in quicktest professional (qtp)?

897


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

1127


Where we can use the synchronization?

952


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

2079


What is keyword driven framework?

1025


Difference between test object and run time object?

936


Key word driven framework

2120


desribe a situation where u faced a stressful situation and how did u cope with it

1814


When Recovery scenario actually starts while testing the application?

1970


How to remove the associated function library?

939


How will you test a keyboard?

1044


What is standalone database?

2221


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

983


what is meant by source control?

2115


What are advantages of test automation?

1085