FormatCs

Formats values using .NET composite formatting.

This function is exported by the KS module.

Text := FormatCs(FormatString, Values*)

Parameters

FormatString

Type: String

A .NET composite format string. Placeholder indexes are one-based rather than zero-based.

Values

The values to format.

Remarks

This function uses the formatting rules of System.String.Format. AutoHotkey-style format specifiers are not accepted by this function; use Format for those.

Examples

#Import "Ks" { FormatCs }
MsgBox FormatCs("Total: {1:N2}", 1234.5)