formatMessage

Formats a string using the passed in parameters.

Syntax

formatMessage(formatString, parameter0, parameter1, parameterX, numberOfParameters)

Parameters

formatString

Specifies the string to be formatted. This string contains a variable number of replaceable parameters (for example, {0}, {1}, etc.,).

parameter0

Specifies the string to be merged into the formatString where the {0} replaceable parameter is specified.

parameter1

Specifies the string to be merged into the formatString where the {1} replaceable parameter is specified.

parameterX

Specifies the string to be merged into the formatString where the {X} replaceable parameter is specified.

numberOfParameters

Specifies how many replaceable parameters are being passed into the function.

Returns

Returns a string that has been merged with the passed in replaceable parameters.

Remarks

formatMessage takes a variable number of parameters and provides a means to produce concatenated messages in a language-neutral way.