Hi...
Can anybody help me to write the vbscript for this
question..!!! Am having a string "HELLO WORLD", i want to
find how many "L"s are there.....?????
--> HANEEF <--
Answer Posted / nagk24
here one more using loops and inbuilt functions
cnt=0
a="HELLO WORLD"
For i=1 to len(a)
n=mid(a,i,1)
If asc(n)=asc("L")Then
cnt=cnt+1
End If
Next
print cnt
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How many types of Automation frameworks are there in UFT? Describe them.
how do i know how to use tools
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
What are the steps involved in the recovery scenario wizard?
How do client side image and server side image work?
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
How you create new action in qtp?
Your roles and responsibilities and daily tasks? (As automation tester)
How to check which add-ins are associated with a test in qtp?
How will you test a stapler?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
Which environments are supported by hp qtp?
how to idetfy which test cases are automated?who will deside that plz tell me
What is Associate Repository in QTP 9.2 ?
Plz Explain AUTOMATION REFERENCE MODEL?