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...

I've some problem in Descriptive programming plz help me.
I've written in a click event code in Functional library
when I run this flight reservation program It is not run.
How to I write multiple click event in functional library.
My program is this. I have associate an action with
functional library.
Public Function ClickButton(byval ApplicationName, byval
WindowName, byval ObjectName, byref Comments) If
Dialog("text:=" &WindowName).WinButton("text:="
&ObjectName).Exist Then

Dialog("text:=" &WindowName).Activate
Dialog("text:=" &WindowName).WinButton("text:="
&ObjectName).Click

Elseif Window("text:="&ApplicationName).WinButton("text:="
&ObjectName).Exist Then
Window("text:=" &ApplicationName).Activate
Window("text:=" &ApplicationName).WinButton("text:="
&ObjectName).Click
End if
End Function

Answer Posted / nn

syntax error?- 2 if's used an 1 end if

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1005


In qtp, how you can remove the spaces from string?

1049


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

2178


How can you exit from an action?

1105


in a web page How to check and display a particular word from a paragraph?

2540


Discuss quicktest professional (qtp) environment?

1065


Can we create user defined functions in qtp?

1063


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

2346


what is object and child object.. explain ..if possible give some example for better understanding ..

2049


Why do we use breakpoints in QTP?

1115


What is method name to compare two XML files.

2030


If I change the object name in one action will it be updated in all the actions? Or not?

1117


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1795


What is throw object?

2448


How many types of status are there?

1099