Object Reference : Object View and Procedure Reference : Userobj
  
 
add
Add a data or object member to the user object.
Adds a new data or object member to the user object. You may either create a new string or scalar member directly, or copy an existing object from the current workfile page. Note that only view objects (tables, graphs, text objects or spools) or matrix objects can be copied to a user object as members.
Syntax
userobject_name.add(options) member arg
userobject_name.add(options) [member] objname
If creating a new member inside the user object, you should specify the name of the member with member, and then specify its value with arg. If arg is a number, the new member will be created as a scalar, if arg is a string, the new member will be a string.
If copying the member from the current workfile page, you should use objname to specify the name of the object in the workfile you wish to copy. If you would like to give the member a different name inside the user object, you can specify that name with member.
Options
 
r
Replace an existing member. If this option is not used, and a member with the same name already exists, EViews will error.
d
When copying an object from the workfile page as the data member, delete the object from the workfile after copying.
Examples
myobj.add mymember 3
Creates a new member inside the user object MYOBJ called MYMEMBER, and sets its value equal to 3.
myobj.add(r) mymember "hello"
Replaces the member MYMEMBER with a string value of “hello”.
myobj.add matv
Creates a new member called MATV by copying the existing workfile object MATV into the user object.
myobj.add(d) mymat matm
Creates a new member called MYMAT by copying the workfile object MATM into the user object. MATM is deleted from the workfile.
Cross-references
See “User Objects” for discussion of user objects.
See also Userobj::clear, Userobj::drop, and Userobj::members.