
687
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Parameters
PromptInt
Description
Displays a dialog box that prompts the user for a single integer value. It allows you to provide a default value, which
appears in the entry field when the dialog box appears. The dialog box has OK and Cancel buttons.
PromptInt()
does not assign a value to
*intp
if the user clicks Cancel. If the user types alphabetic text after a number,
the method ignores the text and just returns the value of the number.
The method returns 0 if the user clicked OK; a nonzero value if the user clicked Cancel or an error occurred.
On failure, the method assigns the following value to
FA_errno
:
Returns
int
Syntax
PromptInt(message, stuffVal)
Parameters
PromptMetric
Description
Displays a dialog box that prompts the user for a single metric value. It allows you to provide a default value, which
appears in the entry field when the dialog box appears. The dialog box has OK and Cancel buttons.
Parameter name
Data Type
Optional
Description
title
string
No
The message that appears in the dialog box.
directory
string
No
The default directory when the dialog box is first displayed. If
you specify an empty string, the last directory used by an ESTK
client is used. If no ESTK client has used a directory, the directory
specified by the session property,
OpenDir
, is used.
stuffVal
string
No
The default value that appears in the input field when the dialog
box first appears. If the dialog box type specified by mode does
not have an input field, this string is ignored.
mode
int
No
A constant specifying the type of dialog box.
Error
Reason
Constants.FE_Transport (-1)
A transport error occurred.
Parameter name
Data Type
Optional
Description
message
string
No
The message that appears in the dialog box. It must be 255
characters or less.
stuffVal
string
No
The default value that appears in the input field when the dialog
box is first displayed.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...