Listing files

For questions regarding programming in the EViews programming language.

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

KrilleJ
Posts: 40
Joined: Fri Feb 20, 2015 6:15 am

Listing files

Postby KrilleJ » Wed Jan 11, 2017 7:55 am

I am trying to list files using @uifiledlg but cannot filter the files correctly.

When I use

%file="C:\MyPath\"
!buttonClick=@uifiledlg(%file, "prg", "open")

all .prg files will be listed.

But when I use

%file="C:\MyPath\"
!buttonClick=@uifiledlg(%file, "wf1", "open")

the list contains, not only .wf1 files, but all files in the directory.

Can I restrict the list to contain only .wf1 files?

Best,
Kristian

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

Re: Listing files

Postby EViews Gareth » Wed Jan 11, 2017 8:40 am

Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 71 guests