
506
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
NewUnanchoredFrame
Description
Creates an unanchored frame object.
See
NewGraphicObject
for more information.
Returns
UnanchoredFrame
Syntax
NewUnanchoredFrame(parent)
Parameters
NewAnchoredFormattedObject
Description
Creates the following types of anchored objects:
•
Var
•
XRef
•
Tbl
NewAnchoredFormattedObject()
inserts the object at the specified location in text. It uses arbitrary default
properties for the new object.
If you call
NewAnchoredFormattedObject()
to create a table, it uses the default numbers of rows and columns from
the specified Table Catalog format. To use the default Table Catalog format for a new table, set the format to
Null
. To
specify the number of rows and columns when you create a table, use
NewTable()
.
NewAnchoredFormattedObject()
returns the created anchor object, on success.
On failure, the method sets
FA_errno
to one of the following values:
Parameter name
Data Type
Optional
Description
parent
Any
FrameMaker
Graphic
Object
No
The parent frame in which to create the unanchored frame.
Error
Reason
Constants.FE_BadDocId(-2)
Invalid document.
Constants.FE_BadObjId(-3)
Invalid object.
Constants.FE_NotTextObject (-41)
Object specified for text location is not a paragraph (FO_Pgf).
Constants.FE_OffsetNotFound(-21)
Offset specified for the text location could not be found in the specified paragraph or text line.
Constants.FE_BadNew(-23)
Object cannot be created; the format specified by
format
may not exist.