Escape characters in @UI functions

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

jthodge
Posts: 76
Joined: Tue Oct 21, 2008 5:52 am

Escape characters in @UI functions

Postby jthodge » Fri Oct 13, 2017 7:59 am

I'm trying to understand how to use "escape characters" when using the @uiradio function to create a dialog box with two options, both of which contain spaces.

As the documentation indicates, the list of options is space-delimited. If an option includes a space it must use double-quote escape characters.

However, I don't understand how to implement those escape characters in my code:

Code: Select all

%message = "Which option for extended year forecast?"
scalar selection = 1
!prompt = @uiradio(selection,%message,"30-year trend" "10-year average")

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

Re: Escape characters in @UI functions

Postby EViews Gareth » Fri Oct 13, 2017 8:29 am

Code: Select all

%message = "Which option for extended year forecast?"
scalar selection = 1
!prompt = @uiradio(selection,%message,"""30-year trend"" ""10-year average""")
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 6 guests