In TdvCmdProtocol commands, it is possible to substitute text with
parameter values by specifying a formatting sequence, '%[len]type', before
the parameter name.
Each formatting sequence may contain a length specification. If
length specification is given, the result is left padded with space - or zero if
the replaced parameter value contains less characters than the given
length.
Multiple parameters MUST be separated by ';' or ','.
Format |
Padding |
Description |
%[n]d
%[n]D |
'0' |
Integer number format. If the paramter value is not an
integer value the resulting string is the truncated integer value,
there is no rounding of the value. |
%[n]b
%[n]B |
'0' |
Binary number format. The resulting string is the
binart representation of the parameter value, a sequence of '0' or
'1'. |
%[n]h
%[n]H |
'0' |
Hexadecimal number format. The resulting string is the
hexadecimal representation of the parameter value, a sequence of
'0'..'9', 'A'..'F'. |
%[n.n]f
%[n.n]F |
SPACE |
Floating point format. The resulting string is the
floating point representation of the parameter value. If no length
specifier is given the resulting string holds up till |
%[n]s
%[n]S |
SPACE |
Text format. This is used for text parameters. |
% |
SPACE |
Any number format, the resulting string depends of the
numeric inpuit value (floating point or integer) |
|