%hasoptions and/or %equaloptions
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
%hasoptions and/or %equaloptions
A called program's arguments are stored in %args. But can I check what @equaloption's and @hasoption's it was called with without know them in advance? There doesn't seem to be variables %hasoptions and/or %equaloptions
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13598
- Joined: Tue Sep 16, 2008 5:38 pm
Re: %hasoptions and/or %equaloptions
I don't understand what you're asking here.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13598
- Joined: Tue Sep 16, 2008 5:38 pm
Re: %hasoptions and/or %equaloptions
But, you can return the list of options provided with the @getoptions function:
You can retrieve the ith option with @option:
Code: Select all
%options = @getoptions
Code: Select all
%firstoption = @option(1)
Re: %hasoptions and/or %equaloptions
That’s great! Exactly what I was looking for :-)
Who is online
Users browsing this forum: No registered users and 2 guests
