I have a subroutine which contains optional parameters - all or none may be required - none being the default condition.
What is the correct way I should test whether a parameter is used or not - so far all I get is a "subscript error" if I try to find out whether a parameter is present or not.
Or do I need to have at least one parameter as a flag?
Bob
___________________________________________
Later
Found the answer in another PB Forum :
Code:
FUNCTION Getnopsline(OPT infile AS STRING, entryflag AS LONG, infileps AS LONG, terminator AS STRING, trim AS STRING) AS STRING
Or do I need to have at least one parameter as a flag?
Bob
___________________________________________
Later
Found the answer in another PB Forum :
Code:
IF ISMISSING(infile) then
Comment