Author |
Message |
Scott832
|
Posted: Tue Apr 22, 2003 4:58 pm Post subject: Outputting quotation marks |
|
|
How do you output quotation marks using Font.Draw and put?
For example: how would I output the text put "hello" (with the quotation marks)? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Blade
|
Posted: Tue Apr 22, 2003 5:43 pm Post subject: (No subject) |
|
|
you have to use single quotes |
|
|
|
|
 |
Scott832
|
Posted: Tue Apr 22, 2003 5:49 pm Post subject: (No subject) |
|
|
do you mean I have to write it like this?
put "''hello''" |
|
|
|
|
 |
Catalyst

|
Posted: Tue Apr 22, 2003 5:56 pm Post subject: (No subject) |
|
|
you can put a \ before the quotes and it will work
for ex.
|
|
|
|
|
 |
Scott832
|
Posted: Tue Apr 22, 2003 5:58 pm Post subject: (No subject) |
|
|
nevermind. I found another way.
You can either use your way (which works fine and I appreciate the help) or you can use a slash before the quotation marks you want to be outputted.
example: put "\"hi\""
works the same way with Font.Draw |
|
|
|
|
 |
Scott832
|
Posted: Tue Apr 22, 2003 5:59 pm Post subject: (No subject) |
|
|
oops, guess someone else posted while I was typing my last message. |
|
|
|
|
 |
Asok

|
Posted: Tue Apr 22, 2003 6:03 pm Post subject: (No subject) |
|
|
using put you can do something similar by using 2 ' instead of "
code: | put "''Who Goes There?''" |
or you can use the ASCII value of "" via chr() function in this case it'd be put chr(34)
code: | put chr(34), "Who Goes There", chr(34) |
this works also for Font.Draw
enjoy  |
|
|
|
|
 |
Asok

|
Posted: Tue Apr 22, 2003 6:11 pm Post subject: (No subject) |
|
|
ASCII OWNS \
USE TEH ASCII!! |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
|