05-25-2012, 10:58 PM
I have functions that I use all the time in my automation.
1. Can I save the function to another filename?
2. If I save to another filename how do I evoke it?
3. Is there any other better way?
==============
Below is example of my function:
================
My code that calls it:
1. Can I save the function to another filename?
2. If I save to another filename how do I evoke it?
3. Is there any other better way?
==============
Below is example of my function:
Code:
Dim OutDate,ReturnDate,RndValue
' Initialize random-number generator
Randomize
' Generate random value between 200 and 300
RndValue = Int( (300-200 +1)* Rnd + 200)
'msgBox(RndValue)
OutDate = DateAdd("d", RndValue, Date)
'msgBox(OutDate)
ReturnDate = DateAdd("d", RndValue+10, Date)
'msgBox(ReturnDate)
My code that calls it:
Code:
Browser("Delta Air Lines - Airline").Page("Delta Air Lines - Airline").WebEdit("departureDate_0").Set OutDate