
472
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Parameters
DeleteText
Description
Deletes a specified text range from a document.
The method returns
FE_Success
if it succeeds. On failure, the method returns one of the following values to
FA_errno
:
Returns
int
Syntax
DeleteText(textRange)
Parameters
DemoteElement
Description
Demotes the selected structural element or elements. The element becomes a child of the sibling element before it.
Note:
At least one structural element must be selected in the document, before calling DemoteElement().
The method does not return anything on success.
On failure, the method returns one of the following values to
FA_errno
:
Parameter name
Data Type
Optional
Description
flags
int
No
Bit field that specifies how to cut the text and how to handle
interactive alerts. For default settings, specify 0.
Error
Reason
Constants.FE_BadDelete (-17)
Specified text could not be deleted.
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadObjId (-3)
Invalid Object
Constants.FE_BadRange (-36)
Specified text range is invalid.
Constants.FE_NotTextObject (-41)
Object specified for the text range is not an object that contains text, for example, a
text frame (FO_TextFrame), a paragraph (FO_Pgf) or a text line (FO_TextLine).
Constants.FE_BadSelectionForOperation (-59)
Selection is within a locked text range.
Parameter name
Data Type
Optional
Description
textRange
TextRange
No
The text range to delete.
Error
Reason
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation