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.
Programming a subroutine with absent parameters
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Programming a subroutine with absent parameters
Code: Select all
if @len(%bd)=0 then
'blah blah blah
endif
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 41 guests