
418
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Parameters
AttributeDef
AttributeDef
Description
Describes a single attribute function.
Returns
AttributeDef
Syntax
AttributeDef(name, required, flags, attrType, choices, defValues, rangeMin, rangeMax)
Parameters
The
flags
parameter indicates whether the attribute is read-only, hidden or neither.
The
attrType
parameter can have one of the following values:
Parameter name
Data Type
Optional
Description
name
string
No
Attribute name.
values
Strings
No
Attribute values.
valflags
uint
No
Validation error flags.
allow
uint
No
Allow error as special case.
Parameter name
Data Type
Optional
Description
name
string
No
Attribute name.
required
int
No
True
if the attribute is required;
False
otherwise.
flags
uint
No
One of read-only, hidden or neither.
attrType
int
No
The attribute type.
choices
Strings
No
The list of choices if
attrType
is set to
Constants.FV_AT_CHOICES(2)
defValues
Strings
No
The default value, if attribute is not mandatory.
rangeMin
string
No
The minimum allowed value (if any)
rangeMax
string
No
The maximum allowed value (if any)
Flag
Meaning
Constants.FV_AF_READ_ONLY(0x0001)
The attribute value is read-only.
Constants.FV_AF_HIDDEN(0x0002)
The attribute value is hidden.
NULL
The attribute value is neither read-only nor hidden.
Содержание 65030365 - FrameMaker - PC
Страница 1: ...Scripting Guide ADOBE FRAMEMAKER 10...