Quote:
Originally Posted by thewebchat
I originally didn't add them because I was unsure how they worked when unset, but it seems they default to empty strings.
Code:
sfile = default(sfile, "")
... etc ...
|
Actually, there is no need to set any default values inside your function if all you are doing is passing them on to another function (in this case dfttest). That way you don't need to know the internal details of the other function.
Quote:
User defined script functions
A void ('undefined') value can be passed on to another function as one of its optional arguments. This is useful when you want to write a wrapper function that calls another function, preserving the same defaults.
|