Category:Tidbits and Snippets: Difference between revisions

Jump to navigation Jump to search
Line 8: Line 8:
Using '''special symbols / characters''' in '''string formatting''':  
Using '''special symbols / characters''' in '''string formatting''':  


* To use the '''%''' symbol in strings:
To use the '''%''' symbol in strings:
** <code>Display("The %% is the percent symbol.");</code>
** <code>Display("The %% is the percent symbol.");</code>


*To use '''quote marks''' in strings:
To use '''quote marks''' in strings:
** <code>Display("The \" is a quote mark.");</code>
** <code>Display("The \" is a quote mark.");</code>


*To use '''line breaks''' in strings:
To use '''line breaks''' in strings:
** <code>Display("The [ is a line break.");</code>
** <code>Display("The [ is a line break.");</code>


*To use the '''[''' symbol in strings:
To use the '''[''' symbol in strings:
** <code>Display("The \[ is a left brace.");</code>
** <code>Display("The \[ is a left brace.");</code>


0

edits

Navigation menu