... including URL and other Internet Web site references, is subject to change. without notice. ... does not give you any license to these patents, tr
Document source : download.microsoft.com
Microsoft Word Suite
349
Command: update field
Updates the result of the field object. Returns true if the field is updated successfully.
Syntax
update field field Required. An expression that returns a field object.
Example
This example updates the first field in the active document and displays a message in the status bar
indicating whether or not the field was updated successfully.
set uField to update field field 1 of active document
if uFIeld is true then
set status bar to "Field updated"
else
set status bar to "Error, field not updated"
end if
Command: update page numbers
Updates the page numbers for items in the specified table of contents or table of figures.
Syntax
update page numbers table of contents/table of figures Required. An expression that returns a
table of contents or table of figures object.
Example
This example updates all tables of figures in Sales.doc.
repeat with figs in (get tables of figures of document "Sales.doc")
update page numbers figs
end repeat
This example inserts a page break at the insertion point and then updates the page numbers for the
first table of contents in the active document.
collapse range text object of selection direction collapse start
insert break at text object of selection break type page break
update page numbers table of contents 1 of active document
Command: update source
Replaces the specified field with its most recent result.
Syntax
update source field Required. An expression that returns a field.
Summary :
Microsoft Word Suite 349 Command: update field Updates the result of the field object. collapse range text object of selection direction collapse start insert break at text object of selection break type page break update page numbers table of contents 1 of active document Command: update source Replaces the specified field with its most recent result.
Tags :
update,page,table,numbers,figures,object,updates,example,document,actie,break,returns,contents