"" in words

Just starting out? Need help? Post your questions and find answers here.
NewMan
User
User
Posts: 11
Joined: Sun Jul 25, 2004 9:54 am

"" in words

Post 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?
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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) :)
Last edited by Dare2 on Wed Sep 29, 2004 9:13 am, edited 1 time in total.
@}--`--,-- A rose by any other name ..
Kendrel
User
User
Posts: 58
Joined: Fri Apr 25, 2003 7:00 pm

yes...

Post 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 :)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

I just prettied mine up to give it some extra marketability
:D
@}--`--,-- A rose by any other name ..
ebs
Enthusiast
Enthusiast
Posts: 557
Joined: Fri Apr 25, 2003 11:08 pm

Post 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
Post Reply