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.

Answers were Sorted based on User's Feedback



Given a string variable contain a full name (last name, first name), using vbscripting, how can yo..

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

Given a string variable contain a full name (last name, first name), using vbscripting, how can yo..

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

Post New Answer

More QTP Interview Questions

Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties..

5 Answers   Clinical Soft,


what is exact difference between smoke and sanity testing?

6 Answers   Satyam,


how to associate object repository during runtime in qtp

1 Answers   Deloitte,


How many function you use in your application?

2 Answers   Polaris,


what is objectidentification?

2 Answers  


Have you faced any problems with object repository?

0 Answers  


Will down time for server and content maintenance/upgrades be allowed? how much?

0 Answers  


how to open Excel sheet & write in it & save it?

1 Answers   InTech,


1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?

1 Answers   Satyam,


How to capture checkbox properties when properties of the object keep changing on relogin to the application.

0 Answers   TCS,


How to Install QTP on Citrix Environment? Possible send me the installation steps.. That would be great help

1 Answers  


How to check the URL using Automation tool QTP

2 Answers  


Categories