Scalar for @uiedit

For questions regarding programming in the EViews programming language.

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

cantagallo
Posts: 13
Joined: Wed Feb 25, 2015 4:02 am

Scalar for @uiedit

Postby cantagallo » Fri Jul 17, 2015 4:52 am

Code: Select all

' ' set the forecast horizon %horizonq= "Enter number of quarterly horizon" scalar ret = @uiedit(%horizonq, "Horizon") !horizonm= !horizonq*3 ' %date = "5Mar_h10.00" '***************************MAIN*********************** include subroutines.prg include data.prg include monthly.prg include quarterly.prg include errors.prg
The user dialog works with strings, while I'd like to let the user specify the value of the quarterly span for forecasting. Is there a way to do that within @uiedit or should I convert the string into a control variable.

Many thanks in advance.

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

Re: Scalar for @uiedit

Postby EViews Gareth » Fri Jul 17, 2015 5:37 am

Convert. Uiedit only works with strings

cantagallo
Posts: 13
Joined: Wed Feb 25, 2015 4:02 am

Re: Scalar for @uiedit

Postby cantagallo » Thu Jul 23, 2015 7:08 am

Thank you very much.

If I need to set up complex dialogs, are there some example I could follow to save some time? I couldn't find much on the guide.
Thank you in advance.

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

Re: Scalar for @uiedit

Postby EViews Gareth » Thu Jul 23, 2015 7:37 am

Download some addins. Most of them use @uidialog


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests