GLBasic forum

Main forum => GLBasic - en => Topic started by: Jonás Perusquía on 2013-Jul-05

Title: line breaks does not work. help please.
Post by: Jonás Perusquía on 2013-Jul-05
Hi there :D!

i got some trouble while "rewritting my game's menu code, because it was a mess!!! :S

now instead of several PRINTs, i would like to add line breaks with "\n" but it simply shows a blue square :(

here is a screenshot:
(http://s20.postimg.org/scpcgirv1/glbasic.png)

Can anyone help me please? :) thank you in advance
Title: Re: line breaks does not work. help please.
Post by: kanonet on 2013-Jul-05
As far as I know this simply does not work. For every new line you need a new call for PRINT.
Title: Re: line breaks does not work. help please.
Post by: spicypixel on 2013-Jul-05
You could always write a function and use MID$ to check for "\n" or use SPLITSTR which might be nicer. <--- Just found SPLITSTR myself :)
Title: Re: line breaks does not work. help please.
Post by: Jonás Perusquía on 2013-Jul-05
you mean using SPLITSTR when border of screen/box is reached to write a new line? or Split a PRINT command?
Is the last one possible? xD
Title: Re: line breaks does not work. help please.
Post by: MrTAToad on 2013-Jul-05
You would use SPLITSTR and then multiple calls with PRINT
Title: Re: line breaks does not work. help please.
Post by: Jonás Perusquía on 2013-Jul-05
thanks i understand now :D