Part of the Samples Website. 8/16/97.


«Shows how optional parameters work in Frontier 3.0
«Run the script for a demo
on sayHello (person = nil)
if person equals nil «parameter not supplied by caller
dialog.alert ("Hello stranger!")
dialog.alert ("Hello " + person + "!")
sayHello () «no parameter
sayHello ( «works with one parmeter too
on takesThreeParams (name = "", city = "", age = 0)
dialog.alert (name + city + age)
takesThreeParams () «no parameters supplied
takesThreeParams ("Bull Mancuso", "Utica", 38) «all three provided
takesThreeParams (age:38, city:"Utica", name:"Bull Mancuso") «mixed up order

This page was last built on Sat, Aug 16, 1997 at 6:38:44 PM. You can download the current set of sample scripts from our FTP site. Dave