Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.3 KB

File metadata and controls

42 lines (30 loc) · 1.3 KB

FormatString

With the :aimmsFormatString function you can compose a string that is built up from combinations of numbers, strings and set elements. The :aimmsFormatString function accepts a varying number of arguments, defined by the conversion specifiers in the format string.

FormatString(
     formatstring,    ! (input) a literal double quoted string
     arguments,       ! (input) a list of numbers, strings, and set elements
     ...
     )

Arguments

formatstring

A format string that specifies how the returned string is composed. The string should contain the proper conversion specifier for each following argument.

arguments,...

One or more arguments of type number, string or element. The order of these arguments must coincide with the order of the conversion specifiers in formatstring.

Return Value

The function returns the formatted string.

For a detailed description of the conversion specifiers in AIMMS see sec:set-expr.string.format of the Language Reference.