Is it possible to construct functions with default values in DBPro?For instance the user calls the function but doesn't specify any values in the parameters. The function uses the default values set up by the programmer thereby making the parameter optional. i.e...
FUNCTION myFunction(a = 1, b = 2, c = 3)
value = a + b + c
ENDFUNCTION value
Function call ...
myFunction(23)
The parameters b & c are optional in this case or...
myFunction()... all the parameters are optional.
I've had DBPro for a number of years but have never used it. I was an avid Blitz3D Basic user where these type of functions are routine as in many programming languages. I just can't seem to get it to work in DBPro. I could set up some default values in the function body but that seems pretty lame to me. Thanks for any help in advance.
Pipes
Contempt Prior to Investigation = Everlasting Ignorance