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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to associate shared object repository to test in qtp?

496


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1514


How to use actions in qtp ?

580


What are the differences between quicktest professional (qtp) and winrunner?

561


What are some test assets and related extensions of qtp?

543






Problem with XML checkpoint in QTP ?

3495


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1318


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

1553


How to execute a winrunner script in quicktest professional (qtp)?

509


give me an example where u used good judgement and logic in solving a problem

3346


how to test load test and block box testing an a web based application pls give ans briefly

1345


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1510


Can the user toggle between using Local OR and shared OR for the same action?

550


How did you resolve conflicts present in Object Repository?

1609


What are the differences between table and db checkpoints?

525