langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
16
Task/Literals-String/PureBasic/literals-string-1.purebasic
Normal file
16
Task/Literals-String/PureBasic/literals-string-1.purebasic
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
; Characters (*.c), can be ASCII or UNICODE depending on compiler setting
|
||||
Define.c AChar='A'
|
||||
; defines as *.a it will be ASCII and *.u is always UNICODE
|
||||
Define.a A='b'
|
||||
Define.u U='水'
|
||||
|
||||
; Strings is defined as **.s or ending with '$'
|
||||
Define.s AStrion ="String #1"
|
||||
Define BStrion.s ="String #2"
|
||||
Define CString$ ="String #3"
|
||||
; Fixed length stings can be defined if needed
|
||||
Define XString.s{100} ="I am 100 char long!"
|
||||
|
||||
; '"' can be included via CHR() or its predefined constant
|
||||
Define AStringQuotes$=Chr(34)+"Buu"+Chr(34)+" said the ghost!"
|
||||
Define BStringQuotes$=#DOUBLEQUOTE$+"Buu"+#DOUBLEQUOTE$+" said yet a ghost!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue