Displays a list of object properties.
VIEWOBJECT(obj, "title")
obj |
- |
An object, the object to display. |
"title" |
- |
Optional. A string, the title to display. Defaults to the object name. |
myobj = gnorm(1000, 1);
myobj.name = "Test";
myobj.pisq = pi * pi;
myobj.data = 1..10;
viewobject(myobj)
Creates a simple object named myobj that contains three properties, name, a string, pisq, a real and data, a series. VIEWOBJECT displays the name, type and value for each property.
VIEWOBJECT requires an object with properties.
See VIEWVARS to display a modeless list of all current global variables.