Adobe 65030365 - FrameMaker - PC Manual page 480

Scripting guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Parameters
Parameter name
flags
DeleteText
Description
Deletes a specified text range from a document.
The method returns
FE_Success
:
FA_errno
Error
Constants.FE_BadDelete (-17)
Constants.FE_BadDocId (-2)
Constants.FE_BadObjId (-3)
Constants.FE_BadRange (-36)
Constants.FE_NotTextObject (-41)
Constants.FE_BadSelectionForOperation (-59)
Returns
int
Syntax
DeleteText(textRange)
Parameters
Parameter name
textRange
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
Error
Constants.FE_WrongProduct (-60)
Data Type
Optional
int
No
if it succeeds. On failure, the method returns one of the following values to
Reason
Specified text could not be deleted.
Invalid document.
Invalid Object
Specified text range is invalid.
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).
Selection is within a locked text range.
Data Type
Optional
No
TextRange
Reason
The current FrameMaker version does not support the requested operation
Last updated 9/26/2011
Description
Bit field that specifies how to cut the text and how to handle
interactive alerts. For default settings, specify 0.
Description
The text range to delete.
:
FA_errno
472

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 10

Table of Contents