Function FormatString(formatstring, arguments, ...)


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

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



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


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.

See also

For a detailed description of the conversion specifiers in AIMMS see Formatting Strings of the Language Reference.