uilist, string and wfopen
Posted: Fri May 01, 2015 3:18 am
Hi. I wish to open a workfile based on user's selection in a @uilist.
I am having rough time with that.
Can anyone help?
Thank you
I am having rough time with that.
Can anyone help?
Code: Select all
string country = "uk"
@uilist(country, "select a country:", "uk us")
if %country = "uk" then %region="europe" endif
if %country = "us" then %region="namerica" endif
' I wish to open the following workfiles, alternatively
' g:\eviews\europe\uk\uk.wf1
' g:\eviews\namerica\us\us.wf1
wfopen g:\models_eviews\{%region}\{%country}\{%country}