Programming a subroutine with absent parameters
Posted: Thu Jan 24, 2019 2:04 pm
Hi,
I created the following subroutine:
subroutine haver(string %ticker, string %BD)
Is there a command that allow a parameter to be non-existant? For example, here I want my %BD parameter to have a value if it's not specified in the opening statement:
if @isobject(%BD)=0 then
%BD = "EMERGE G10 EMERGECW EMERGELA EMERGEMA EMERGEPR"
endif
Is that possible?
Thank you.
I created the following subroutine:
subroutine haver(string %ticker, string %BD)
Is there a command that allow a parameter to be non-existant? For example, here I want my %BD parameter to have a value if it's not specified in the opening statement:
if @isobject(%BD)=0 then
%BD = "EMERGE G10 EMERGECW EMERGELA EMERGEMA EMERGEPR"
endif
Is that possible?
Thank you.