extracting user name

For questions regarding programming in the EViews programming language.

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

amrsherif
Posts: 99
Joined: Mon Jul 23, 2018 4:34 pm

extracting user name

Postby amrsherif » Mon Jul 23, 2018 7:55 pm

Hi,

I was wondering if there is a way to extract a user's username (or eviews registration name) by code. I'm trying to run a uidialog that would "remember" each user's last entries or choices. For this, i ceeated a user-specific database for each user.

For now, my workaround was to create a batch file that retrieves it, stores it as a text file which opens in eviews. This of course is a problem when a user is running on a server (without permissions to execute the batch file).

Thanks

amrsherif
Posts: 99
Joined: Mon Jul 23, 2018 4:34 pm

Re: extracting user name

Postby amrsherif » Mon Jul 23, 2018 7:58 pm

It would be much better and more efficient if there is another way of having the ui remember the previous choices with using setmaxerrs, but I can't think of any

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

Re: extracting user name

Postby EViews Gareth » Mon Jul 23, 2018 9:20 pm

Follow us on Twitter @IHSEViews

amrsherif
Posts: 99
Joined: Mon Jul 23, 2018 4:34 pm

Re: extracting user name

Postby amrsherif » Tue Jul 24, 2018 4:11 am

This is perfect. Thank you Gareth


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 18 guests