Page 1 of 1

Only a 'Tick'

Posted: Thu Oct 14, 2021 11:35 pm
by Michael Vogel
Double quotes can be used for strings (s.s=~"\"") but a single tick does not work for a code like a.a=~'\''.

Not the most important thing in the world, but would be fine to have a more readable code instead of using the value 39 like in the following example code:

Code: Select all

DataSection
Data.a 'D', 'a', 't', 'a', '.', 'a', 39, 'D', 39, ',', 39, 'a', 39, ',', 39, 't', 39, ',', 39, 'a', 39
EndDataSection

Re: Only a 'Tick'

Posted: Fri Oct 15, 2021 9:10 am
by mk-soft
Perhaps with own constants

Code: Select all

#QUOTE = 39
#DQUOTE = 34

DataSection
  label:
  Data.a 'D', 'a', 't', 'a', '.', 'a', ' ', #QUOTE, 'D', #QUOTE, ',', #QUOTE, 'a', #QUOTE, ',', #QUOTE, 't', #QUOTE, ',', #QUOTE, 'a', #QUOTE
  Data.a 0
EndDataSection

Debug PeekS(?label, -1, #PB_Ascii)