Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP with FUNCTIONS
#3
Solved: 11 Years, 4 Months ago
I think i made some progress on the answer to my intial question. but i do have a follow up. How can i set optional variables in a function.

for example.

public function create addressbook (byref name, byref address, byref city, by ref zip)

Code:
browser("main").page("flight").weblist("objecttype:dropdown").Select name
browser("main").page("flight").weblist("objecttype:dropdown").Select address
browser("main").page("flight").weblist("objecttype:dropdown").Select city
'etc

how can i implement optional variables as well? for instance if i wanted suitenumber to to applicable to some and not all.
is specifying all possible variables the only way?
Reply


Messages In This Thread
HELP with FUNCTIONS - by rdwaram - 11-10-2009, 02:38 AM
RE: HELP with FUNCTIONS - by Saket - 11-10-2009, 09:48 AM
RE: HELP with FUNCTIONS - by rdwaram - 11-11-2009, 02:18 AM
RE: HELP with FUNCTIONS - by jsknight1969 - 11-11-2009, 03:42 AM
RE: HELP with FUNCTIONS - by rdwaram - 11-11-2009, 10:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 3,222 08-22-2013, 11:43 AM
Last Post: smartkarthi
  exit parent functions as well Shridevi.Salagare 3 3,869 07-31-2013, 12:15 AM
Last Post: Ankur
  Datatable in functions shwetasharma 2 3,521 03-26-2013, 08:00 AM
Last Post: sams001
  Problem with using two functions in the same action mhanaan 2 3,043 09-14-2012, 10:09 PM
Last Post: mhanaan
  Can you do functions by calling filename or any other better ways? chong67 2 3,206 05-29-2012, 11:41 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 2 Guest(s)