-
Notifications
You must be signed in to change notification settings - Fork 15
String.FormatUsing
boxgaming edited this page Jul 25, 2026
·
2 revisions
Formats a string using the same format pattern as the PRINT USING keyword.
result$ = String.FormatUsing ( s$, format$ )
- The s$ parameter contains the source string.
- The format$ indicates the formatting pattern to use.
Import String From "lib/lang/string.bas"
Print String.FormatUsing("$###,###.##", 5621.2341)
Print String.FormatUsing("**$###.##", 14.5)
Print String.FormatUsing("First Name: [\ \]", "Doug")
Print String.FormatUsing("Initials - First: [!], Last: [!]", "Doug", "Smith") $5,621.23
***$14.50
First Name: [Doug ]
Initials - First: [D], Last: [S]