First off I want to introduce myself. I just started darkbasic for a few days and it's actually my first programming language. so basically I made a few codes about making text box, but I got stuck here because this code
tex$="Thousands of people have attended the biggest anti-government rally in the Russian capital Moscow since the fall of the Soviet Uni As many as 50,000 people gathered on an island near the Kremlin to condemn alleged ballot-rigging in parliamentary elections and demand a re-run.Other, smaller rallies took place in St Petersburg and other cities."
` create the timer
times=timer()
` the first line in which the text would appear
lines=1
do
ncha$=mid$(tex$,n)
` display next character every 0.02 second
if times+20<timer()
text n1*text width(ncha$),lines*text height("ncha$"),ncha$
inc n
inc n1
` reset the timer
times=timer()
endif
` change to the next line when the current one is full
if n1*text width(ncha$)>screen width()-20
inc lines
n1=0
endif
loop
wait key
I could create like in an adv text box, but I don't know how to make it to not to break each word. Can someone give me pointers how to make it not to break each word?