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 / text program help needed

Author
Message
karma647
17
Years of Service
User Offline
Joined: 26th May 2007
Location:
Posted: 26th May 2007 09:31 Edited at: 26th May 2007 11:25
I made a text program but the screen wont scroll down as it fills up. Because of this once the text reaches the bottom you are not able to read anything after the last line on the screen. The program is for showing that the starting stat are for different race and class combinations in WOW. Please be forgiving this is my first program.



mod edit : use the [ c o d e ] your code here [ / c o d e ]
remove the spaces between the code tags for usage.

Attachments

Login to view attachments
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 26th May 2007 11:09 Edited at: 26th May 2007 11:16
Now, I'm very nooby aswell, but I believe you can use the "cls" command.

That clears the screen when the code reaches that line.


Try this code instead of yours.




E.D.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 26th May 2007 11:15
As you get to know the language and hopefully your using PRO as types are not native to classic, you can make your own text scrollers.

This example uses the up and down arrow keys.
It will scroll through the textual data accordingly.
It will only allow the text to scroll with one key press per row.
It uses an Array with a TYPE.

anyway have a look at this result as it might be a little advanced for you at this point in time, but you should head towards this method as it will allow for a lot of data control.



n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 26th May 2007 21:32
*cough*
*cough*

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
karma647
17
Years of Service
User Offline
Joined: 26th May 2007
Location:
Posted: 29th May 2007 14:14
Thanks everyone for helping me out with this. The "cls" command fixed the problem. I am going to play more with the all of code snippets everyone gave me this weekend when I have the free time to play with my computer more. (Wife and work keep me to busy during the week to let the mad scientist in me run rampant and get sucked in with learning to program)

Login to post a reply

Server time is: 2024-11-25 18:00:10
Your offset time is: 2024-11-25 18:00:10