DSM Template Services Manual

Display-Text Procedures
DSM Template Services Manual427187-004
2-20
Custom-Formatting Procedures
convert-proc
The name of your custom-formatting procedure.
status
INT
returns the outcome of the call:
See also status-1 on page 2-21 and status-2 on page 2-21.
internal-value
STRING .EXT:ref:*
points to the value to be converted. This value must be fixed-length or self-
describing because there is no provision for passing a size.
numeric-format
INT:value
indicates how numeric values are to be formatted:
status := convert-proc
( internal-value ! i
, numeric-format ! i
, string-format ! i
, context ! io
, external-value:maxlen ! o:i
, len ! o
, status-1 ! o
, status-2 ! o
, extra-1 ! -
, extra-2 ! -
, extra-3 ) ! -
EXTENSIBLE;
0 External value is complete
-2 Illegal parameter value
-3 Missing required parameter
-4 Illegal parameter address
-12 Insufficient stack space
-13 File-system error; see status-1 and status-2
-16 More external values to come
-17 More to come; use new line
-18 Entire token formatted; custom-formatting procedure does not need to be called
again