Microsoft Word Suite
181
To add a variable to a document, use the make command. The following example adds a document
variable named "Temp" with a value of 12 to the active document.
make new variable at active document with properties ¬
{name:"temp",
variable
value:"12"}
Properties
entry index
Returns a number that indicates the position of the variable in the variables list. Read-only.
name
Returns the document variable name. Read-only.
variable value
Returns or sets the value of the document variable. Read/write.
Class: view
Plural
views
Contains the view attributes (show all, field shading, table gridlines, and so on) for a window or
pane.
To return the view object, use the view property of a window object. The following example sets
view options for the active window.
set show all of view of active window to true
set table gridlines of view of active window to true
set wrap to window of view of active window to false
Remarks
To change the view, use the view type property. The following example switches the active window
to normal view.
set view type of view of active window to normal view
To change the size of the text on-screen, use the percentage property of the zoom class. The following
example enlarges the on-screen text to 120 percent.
set percentage of zoom of view of active window to 120
To view comments, endnotes, footnotes, or the document header or footer, use the seek view
property. The following example displays the current footer in the active window in page layout
view.
set view type of view of active window to page view
set seek view of view of active window to seek current page footer