Formatting Routines [Automation]
To format a variant into a string you must first tokenize the format string and then apply the format on that string. The API level formatting functions can be used to apply the format in one step and to apply the same format repeatedly. For example, you can call the VarFormat function to apply the formatting at once. If you are going to apply the same format over again you can call VarTokenizeFormatString and use the tokens from VarFormatFromTokens repeatedly. The following table describes the API level formatting routines:
Parses the actual format string into a series of tokens.
Formats a variant into string form by using the user's default locale while calling VarTokenizeFormatString and VarfFormatFromTokens.
Formats a variant using named date and time format into a string.
Formats a variant containing numbers into a string form.
Formats a variant containing percentages into a string form.
Formats a variant containing currency values into a string form.
Returns a string containing the localized weekday name.
Returns a string containing the localized month name.
Takes the output of VarTokenizeFormatString and applies it to a variant to produce a formatted output string.