
480
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
HypertextCommand
Description
Simulates a user-invoked hypertext command.
Note:
Calling the HypertextCommand() method has the same effect as a user clicking on a hypertext marker containing
the specified text.
The method returns
FE_Success
on success.
On failure, the method returns the following value to
FA_errno
:
Returns
int
Syntax
HypertextCommand(hypertext)
Parameters
MergeIntoFirst
Description
Merges the selected structural elements into the first element in the selection.
Note:
At least two structural elements must be selected in the document before calling the MergeIntoFirst() method.
On success, the method does not return any value.
On failure, the method returns one of the following values to
FA_errno
:
Returns
Void
Syntax
MergeIntoFirst()
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Parameter name
Data Type
Optional
Description
hypertext
string
No
A hypertext command to execute, such as
gotolink
or
previouslink
.You can specify any command that is valid in a
hypertext marker in the document.
Error
Reason
Constants.FE_WrongProduct (-60)
The current FrameMaker version does not support the requested operation
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadSelectionForOperation (-59)
Current text selection is invalid for this operation.