I've never ran into this till now, but how DO you declare a string and initialize its value with a string containing quotation marks?
I'm sure this is a simple thing but I've never seen or used anything like that before.
I'm sure this is a simple thing but I've never seen or used anything like that before.
Do something like this:
String db 'String " String'
or...
String db "String ",22h," String"
String db 'String " String'
or...
String db "String ",22h," String"
Afternoon, 4oh4.
If you want to display a (") then surround your declaration using (')s:
e.g. szFrameRate db 'Framerate "fps":',0
If you want to display a (') then surround your declaration using (")s:
e.g. szFrameRate db "Framerate 'fps':",0
... or use a combination:
e.g. szFrameRate db " 'Framerate' ",' "fps":',0
Cheers,
Scronty
If you want to display a (") then surround your declaration using (')s:
e.g. szFrameRate db 'Framerate "fps":',0
If you want to display a (') then surround your declaration using (")s:
e.g. szFrameRate db "Framerate 'fps':",0
... or use a combination:
e.g. szFrameRate db " 'Framerate' ",' "fps":',0
Cheers,
Scronty
damn
It's almost 4am so I don't feel quite so bad, but how come I didn't think to use the ascii value of the quote?
I could have sworn that I tried that Scronty, but that works too! That confirms it......time for bed.
It's almost 4am so I don't feel quite so bad, but how come I didn't think to use the ascii value of the quote?
I could have sworn that I tried that Scronty, but that works too! That confirms it......time for bed.