Page 1 of 1

Programming a subroutine with absent parameters

Posted: Thu Jan 24, 2019 2:04 pm
by F_Laroche
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.

Re: Programming a subroutine with absent parameters

Posted: Thu Jan 24, 2019 3:10 pm
by EViews Gareth

Code: Select all

if @len(%bd)=0 then 'blah blah blah endif