Customizing the metamodel > Keywords for USRPROPS > fmtxxx or _fmtxxx
  
fmtxxx or _fmtxxx
fmtxxx or _fmtxxx are used, by convention, at the beginning of the name of any function called by the SCRIPT, COLUMN SCRIPT, or COMPONENT SCRIPT keywords. The function itself (for example, _fmtUMLAttr) usually provides a special formatting display of a property value (such as an attribute and all of its properties) on the symbol. The naming convention is as follows:
_fmtxxx
(For example, _fmtUMLAttr): The function itself exists in hard code and cannot be modified. Most functions in SAPROPS.CFG are this way. Hard-coding the function makes System Architect’s response faster.
fmtxxx
(For example, fmtUMLAttr): Exists in the fmtscript.bas file in System Architect’s main executable directory.
To create your own functions, see SCRIPT.
Example
In the following example, a script is called that is used to display attributes on a class diagram in a particular fashion. For example, if an attribute’s access property is “public”, + (plus sign) is put before the attribute on the class symbol, and so on.
DEFINITION "Class"
PROPERTY "Attributes"
{ ZOOMABLE EDIT COMPLETE ListOf "Class Attribute"
KEYED BY {"Package", "Class Name":"Name", Name }
LENGTH 4096 ASGRID
DISPLAY { FORMAT COMPONENT_SCRIPT _FmtNewUMLAttr LEGEND "$$FORCE$$"}
LABEL "Attributes"
}
See also
DISPLAY
FORMAT
SCRIPT
COLUMN SCRIPT
COMPONENT SCRIPT
VALUESCRIPT
Keywords for USRPROPS