DADiSP Worksheet Functions > Function Categories > Series Processing Language (SPL) > VIEWPROP

 

VIEWPROP

Purpose:

Displays a list of object properties.

Syntax:

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 -1, autosize.

w

-

Optional. An integer. The width in pixels.  Defaults to -1, autosize.

Example:

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.

Remarks:

VIEWPROP requires an object with properties.

See Also:

VIEW

VIEWFILE

VIEWHTML

VIEWLOG

VIEWTEXT

WHICH