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
what is meant by Implicit and explicit requirements?
Give the syntax to import/export xls into qtp.
whow much strong on VB and C?
how do u plan test automation?
How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538
What are the types of environment variables in qtp?
how to post xml data from QTP scripts to any application?
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
Explain the checkpoint in qtp?
When Recovery scenario actually starts while testing the application?
Explain how to use QTP to check broken links on a page?
What are the different types of recording modes in qtp? Which will be used when?
What is data driver in qtp? Where we use it?
can u explain relative path architecture framework in qtp?
Explain how qtp identifies objects?