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 Professional Discussion / simple scroller won't work...der!

Author
Message
fatbiffa
22
Years of Service
User Offline
Joined: 15th Jan 2003
Location:
Posted: 13th Mar 2003 21:06
all i want to do is scroll a message along like a pager - why don't it work?
mail$="...message goes in here...blah blah blah... blah blah blah... blah blah blah"
next_letter=next_letter+1
if next_letter>25 then next_letter=1
for l=1 to 25
x$=mid$(mail$,next_letter+1)
mid$(m$,l)=x$
next l
center text 400,510, m$
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 13th Mar 2003 23:06
Mid$ cant be used to set text.
I've got a plug-in to do this sort of thing.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 14th Mar 2003 00:19
That's just so wrong in so many ways.
Here's an 8 character pager

[mail]sync on
mail$=space$(8)+"Message up to 255 characters goes here."+space$(8)

for scrollX=1 to len(mail$)-7
txt$=""
for display=0 to 7
txt$=txt$+mid$(mail$,display+scrollX)
next display
cls 0
text 20,20,txt$
sync
repeat : until timer()>time+100
timer=timer()
nect scrollX[/mail]

And even though I typed that directly into the forum message box - I still hit Ctrl-S and F5 before I realised I needed to click post.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 14th Mar 2003 00:20
And what was wrong with letting my [ code ] tag work ? Grrrr

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 14th Mar 2003 00:49


Might be worth trying my plug-in...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2025-05-18 23:35:03
Your offset time is: 2025-05-18 23:35:03