PublicEntryPoints module
Holds StringFormat, the main entry point of the package.
PublicEntryPoints is a standard module with one function, StringFormat. Its ParamArray takes the values to format as arguments. It copies them into an array and passes them to StringHelper, which does the work. A project that references the package calls it by name or as PublicEntryPoints.StringFormat.
Debug.Print StringFormat("I'm eating a very nice {0} {1}", "Bramleys", 3.142) ' I'm eating a very nice Bramleys 3.142
Debug.Print PublicEntryPoints.StringFormat("{0,-6}|{1,6}|", "ab", "cd") ' ab | cd|
Functions
- StringFormat – builds a string from a format string and a list of values
See Also
- FormerStringFormat function – the earlier implementation
- StringHelper class – takes the values as an array
- Fmt package – overview, with the syntax of format items