![]() | Format (VBScript) | Hex (VBScript) | ![]() |
The Format$ command enables the given numeric variable to be formatted using the given a template string expression.
| Placeholder | Meaning |
| @ | Character placeholder. Display a character or a space. Placeholders are filled left to right unless the ! placeholder is used. |
| & | Character placeholder. Display a character or nothing. Placeholders are filled left to right unless the ! placeholder is used. |
| < | Force lowercase. |
| > | Force uppercase. |
| ! | Placeholders are filled from right to left instead of the default of left to right. |
Examples
String = 'Edward G', '@@@@@@@@@' would return ' Edward G'
String = 'Edward G', '&&&&&&&&&' would return 'Edward G'
String = 'Edward G', '!<@&&&&&&&&'' would return 'edward g '
Syntax
FORMAT$ ( string argument , format string expression )