When defining a function or sub in PB with an optional numeric parameter, is there a way to differentiate between whether no parameter was passed as opposed to the value 0 being passed? For instance, I want my Sub to operate as follows:
Sub MySub CDECL ([Value])
If Value = 0 then ... (do something)
If (no Value) then ... (do something different)
End Sub
Or as an alternative, can you define a function with a default value? For instance, in VB you can define a function as follows:
Sub MySub(Optional Value = 1)
http://www.ucalc.com/dll
Sub MySub CDECL ([Value])
If Value = 0 then ... (do something)
If (no Value) then ... (do something different)
End Sub
Or as an alternative, can you define a function with a default value? For instance, in VB you can define a function as follows:
Sub MySub(Optional Value = 1)
http://www.ucalc.com/dll
Comment