Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / DBP: Using more than one quotation

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 28th Jan 2007 17:16
Ok. i am trying to make an HTML tag in an string variable e.g.:

imgcode$="<img src="C:\Program Files\The Game Creators\Dark Basic Professional\Projects\Jordan Stories Site Creator\defaulttemplate1.gif" border="0" alt=""></a>"

how can i do this without closing the quotation marx and having the right code.

All help appreciated, Thank You!

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 28th Jan 2007 17:21 Edited at: 28th Jan 2007 17:24
Oops. Nevermind this...

[edit]
I'm guessing you want this to show up in DB, right?

chr$(34) is there character for an inverted comma, so, just do:

message$="blah blah"+chr$(34)+"heheh"+chr$(34)+"blah blah"

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 28th Jan 2007 17:41
thnx!

Login to post a reply

Server time is: 2024-11-26 21:33:43
Your offset time is: 2024-11-26 21:33:43