Displays a list of object properties.
VIEWHPROP(obj, "title", h, w)
obj |
- |
An object, the object to display. |
"title" |
- |
Optional. A string, the title to display. Defaults to "Properties". |
h |
- |
Optional. An integer. The height in pixels. Defaults to |
w |
- |
Optional. An integer. The width in pixels. Defaults to |
myobj = gnorm(1000, 1);
myobj.name = "Test";
myobj.pisq = pi * pi;
myobj.data = 1..10;
viewprop(myobj)
Creates a simple object named myobj that contains three properites, name, a string, pisq, a real and data, a series. VIEWPROP displays the name, type and value for each property.
VIEWPROP requires an object with properties.