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.

DarkBASIC Discussion / Question about PRINTing brackets

Author
Message
oDCo
21
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 19th Jul 2005 06:27 Edited at: 19th Jul 2005 06:29
Hello all,

I seem to be unable to print brackets in text properly, is there something I'm missing?

The code below illustrates my problem.


I want the above to PRINTed like this:


Any help would be greatly appreciated

David
Zotoaster
21
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 19th Jul 2005 07:37
hmmm, it doesn't seem to like the brackets, i just replaced the brakets with a '[' and it worked alright though

Your signature has been erased by a mod because it's larger than 600x120...
oDCo
21
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 19th Jul 2005 18:03
Oh right, but does anyone know why it's doing this?

Also, there must be a way of PRINTing brackets surely.

Thanks for the tip though Zotoaster, that'll get me by in the mean time

David
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Jul 2005 18:36
Does Classic have chr$()?



BatVink
oDCo
21
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 19th Jul 2005 19:00 Edited at: 19th Jul 2005 19:42
I'm not sure, I think it might have but I'll check when I'm home tonight.

If so, your solution will be fine for what I want but it'd still be cumbersome if you why wanting to just print something simple out which had brackets in it.

I've played around with programming PERL in the past and I seem to remember there are certain characters (like double quotes) that you have to prefix with another character in order to get them to print (I think it was a back-slash but I'm not certain). Is there something like that for DB?
empty
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 19th Jul 2005 20:19
Indeed that's a bug in DarkBasic.
You could do it that way though:



Play Nice! Play Basic! Version 1.08
oDCo
21
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 19th Jul 2005 23:10
Oh right, thanks empty

I think I'll just use square brackets instead, it's not a major problem and it'll avoid having to add extra code.

Thanks again for all the help/advice from everyone

David

Login to post a reply

Server time is: 2026-07-17 12:50:49
Your offset time is: 2026-07-17 12:50:49