Is this possible? Or an idea for a future release?
Example: Take the following procedure... is there a way to call it
with or without the second parameter, so that if the second one is
ommitted, it just assumes a default value?
Code: Select all
Procedure Test(one,two)
If two=0 ; Perhaps not specified?
two=2
EndIf
EndProcedure
;
Test(1) ; Currently gives an error because only 1 parameter was passed.
PB - Registered PureBasic Coder
