Displaying object that is in UO but not in WF?

For questions regarding programming in the EViews programming language.

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

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

Displaying object that is in UO but not in WF?

Postby KrilleJ » Tue Dec 13, 2016 9:39 am

Hi,

I have another question on user objects.

Suppose that you have generated a user object called uo. Then add a table to the workfile. Call it "test". Then add (without deleting it from the workfile) test to the uo object (with uo.add test).

Next do:

uo.display test --> Will display table in the uo view.
delete test --> Will delete test from workfile
uo.members --> Will show that test still in uo
uo.display test --> Will not display test in uo view.

In the last row, it will say that test is not defined.

Now:

uo.extract test test

will extract the table to the workfile, hence it seems to still exist in the uo. Also, after extract, it can be views in the uo view again. Why can't it be shown in the uo view after it is deleted from the workfile and before it is extracted again?

Best,
Kristian
uotest.png
uotest.png (22.6 KiB) Viewed 4888 times

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

Re: Displaying object that is in UO but not in WF?

Postby EViews Gareth » Tue Dec 13, 2016 10:11 am

.display is for displaying workfile objects inside another object. It has nothing to do with the members of a UO.

Krille
Posts: 14
Joined: Tue Dec 13, 2016 11:16 am

Re: Displaying object that is in UO but not in WF?

Postby Krille » Tue Dec 13, 2016 11:21 am

Ok. I see, my mistake.

Is there any possibility to view e.g. a table of a UO in the user object window by a command (or meny) or do I have to extract the table to the WF first?

Thanks,
K

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

Re: Displaying object that is in UO but not in WF?

Postby EViews Gareth » Tue Dec 13, 2016 11:27 am

You have to extract it


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest