user defined functions?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

user defined functions?

Postby cap » Tue Dec 15, 2009 3:18 pm

Greetings,

I hope this is not too elementary of a question ... is it possible to write functions in Eviews that directly return some output? For example, can I write some function and then use it on the right hand side of an assignment statement, like mynumber = product(2,3), and get mynumber=6.

I am aware of subroutines, but they seem to be lacking in this ability.

(I am using Eviews 6)


Thanks,
-cap

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: user defined functions?

Postby EViews Glenn » Tue Dec 15, 2009 3:47 pm

Unfortunately, no.

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

Re: user defined functions?

Postby cap » Wed Dec 16, 2009 9:44 am

Has there ever been any talk of putting this into a future Eviews release? It would be extremely useful.


Thanks,
-cap

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: user defined functions?

Postby EViews Gareth » Wed Dec 16, 2009 9:59 am

There is talk, but it is exceedingly difficult to do properly where other EViews objects, such as equations and models, could understand the user-defined function. We're contemplating options for EV8 though.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests