Page 1 of 1

"" in words

Posted: Wed Sep 29, 2004 8:59 am
by NewMan
is it possible to set text of a gadget to something like

"HELLO" instead of HELLO

?
whenever i use those "" again pb recognizes it as end and start of the string. So any other way of doing that?

Posted: Wed Sep 29, 2004 9:11 am
by Dare2
Howdy, welcome to PB boards.

Try

Code: Select all

stringVar.s = chr(34)+"HELLO"+chr(34)
or

Code: Select all

stringVar.s = chr('"')+"HELLO"+chr('"')
(Thats single ' double " single ' in case it turns out unreadable) :)

yes...

Posted: Wed Sep 29, 2004 9:11 am
by Kendrel
MessageRequester("test", Chr(34)+"test"+Chr(34))

...should be working with setgadgettext aswell...!



my answer came like 5 seconds too late :)

but better 2 answers than no one eh :)

Posted: Wed Sep 29, 2004 9:13 am
by Dare2
I just prettied mine up to give it some extra marketability
:D

Posted: Wed Sep 29, 2004 1:52 pm
by ebs
How about one more answer? (assuming you're using a recent version of PB)

Code: Select all

stringVar.s = #DQUOTE$ + "HELLO" + #DQUOTE$
Eric