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
What are the features supported by UFT?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
Through array we can execute the testcase how ? give me example
unique properties of button,edit box, radio button,check box?
What is the file extension of the code file in qtp?
How to find the name of the machine where you are running your automation scripts in qtp?
What is expert view and keyword view?
Did the scripts need lot of maintenance? If yes, why?
What is contained in the object repository?
How to run a test using quicktest professional?
How will you test a stapler?
When Recovery scenario actually starts while testing the application?
How to get the particular property value?
What is a reusable action?
Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance