Page 1 of 1

Can we get a #QUOTE$?

Posted: Sun Oct 09, 2005 1:22 pm
by Trond
There is a contstant for double quotes but no for single. That's on my wishlist and should not take too long to make.

Re: Can we get a #QUOTE$?

Posted: Sun Oct 09, 2005 1:45 pm
by Phoenix
Why? Can you not just type ' in your code directly? A constant for doublequote is needed due to not being able to type """ but this is not a problem for a single quote.

Posted: Sun Oct 09, 2005 2:22 pm
by Trond
Because I think the first code is nicer than the second code:

Code: Select all

s.s = #QUOTE$ + s + #QUOTE$

Code: Select all

s.s = "'" + s + "'"
And it's just a matter of completeness.

Posted: Sun Oct 09, 2005 2:33 pm
by Dr. Dri

Code: Select all

#QUOTE$ = Chr(39)
#QUOTE$ = "'"

Debug #QUOTE$
Dri

Posted: Sun Oct 09, 2005 3:46 pm
by Trond
I know how to define my own constants if that's what you mean.

Posted: Sun Oct 09, 2005 3:50 pm
by dracflamloc
I really don't see a need for this. Just my opinion

Posted: Sun Oct 09, 2005 5:10 pm
by Joakim Christiansen
dracflamloc wrote:I really don't see a need for this. Just my opinion
Me to, but if it makes Trond happy then why not...
A #NewLine would also be cool. :lol:

Code: Select all

#NewLine = Chr(13)+Chr(10)
MessageRequester("Test","Line 1"+#NewLine+"Line 2")

Posted: Sun Oct 09, 2005 5:34 pm
by Kale
Joakim Christiansen wrote: A #NewLine would also be cool. :lol:

Code: Select all

#NewLine = Chr(13)+Chr(10)
MessageRequester("Test","Line 1"+#NewLine+"Line 2")
Already Done:

Code: Select all

#CRLF$
viewtopic.php?t=11139

Posted: Mon Oct 10, 2005 6:54 am
by Phoenix
dracflamloc wrote:I really don't see a need for this. Just my opinion
I was thinking that too. Should we also have #A$ for the A character, and so on? It's stupid.

Posted: Mon Oct 10, 2005 11:44 am
by helpy
Constants for double quotes already exists:

Code: Select all

Debug #DOUBLEQUOTE$
Debug #DQUOTE$