Adobe 65030365 - FrameMaker - PC Manual page 693

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

Advertisement

ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
FS_OpenNativeError and FA_errno values
Constants.FE_Success (0)
Constants.FE_Canceled (-44)
Constants.FE_FailedState (-45)
Constants.FE_CanceledByClient (-86)
To determine if a particular FS_OpenStatus bit is set, use "CheckStatus" on page 651.
Returns
Object
Syntax
Open(fileName, openParams, openReturnParams)
Parameters
Parameter name
fileName
openParams
openReturnParams
ScrollBox
Description
Displays an array of items and allows the user to choose one.
Note: If you set
to -1, always check to make sure the value returned in
default
you use it as an array index. If you set
in
will be -1.
selected_item
Returns 0 if the user clicked OK, or a nonzero value if the user clicked Cancel or an error occurred.
On failure, the method assigns the following value to
Possible FS_OpenStatus flags
Constants.FV_LockWasReset (0) - File lock was reset.
Constants.FV_LockNotReset (1) - File had a lock that was not reset.
Constants.FV_LockCouldntBeReset (2) - File had a lock that could not be reset.
Constants.FV_FileWasInUse (3) - File was in use.
Constants.FV_FileIsViewOnly (4) - File is a View Only file.
Constants.FV_LockWasInvalid (5) - File had an invalid lock.
Constants.FV_FileIsNotWritable (6) - The file was not writable, and the user canceled the
open through the alert.
Constants.FV_FileModDateChanged (7) - The file has changed since the last time it was
opened or saved in the current session.
Data Type
Optional
No
string
PropVals
No
PropVals
No
to -1 and the user clicks OK without choosing an item, the value returned
default
FA_errno
Last updated 9/26/2011
Description
The full pathname of the file to open. If you are using
create a document, specify the name of the template to use.
A property list telling the FrameMaker product how to open the
file and how to respond to errors and other conditions. To use
the default list, specify NULL.
A property list that returns the filename and provides
information about how FrameMaker opened the file. It must be
initialized before you call
Open()
selected_item
:
685
to
Open()
.
is 0 or greater before

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 10

Table of Contents