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 / Deleting Text (easy question :P)

Author
Message
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 12th Mar 2003 21:22
How do I delete text from the screen once I've used print?
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 12th Mar 2003 21:33
you don't have many choices :
1. use the command "CLS", it delete the screen (it become black, everything is deleted )
2. if you have a black background, draw a black box on the text ( you need to know the size and the texte's coordinates ).

I'm the God who made the world in seven lines.
I'm the Evil who destroyed this world in one line.
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 12th Mar 2003 21:33
There are two possibilies.
First you use cls(clearscreen) or second you write the same text on the same position with the background color.

"If you can't make it good
make it look good."
Bill Gates
D Man
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 12th Mar 2003 21:33
*lol*

"If you can't make it good
make it look good."
Bill Gates
Andy Igoe
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 12th Mar 2003 22:04
Store your display as a series of arrays to you can just empty arrays?



Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Jimmy Cool
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: United States
Posted: 12th Mar 2003 23:36
whiteout

or press delete

or... DEL TACO

***********************************************
Me, i'll just be here crying my brains out
Dr BOK
21
Years of Service
User Offline
Joined: 8th Feb 2003
Location: United Kingdom
Posted: 13th Mar 2003 21:35
Surely something could be implemented into DB?
DELETE TEXT perhaps?

Delete text(text code)

txt$="hello"
delete text(txt$)
could this not be put in?
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 14th Mar 2003 02:02
you'd have to write a function to do that (but it seems pretty pointless to me...)

something like

do
cls
if text$<>0 then print text$
if deletekey()=1 then text$=""
loop

but, you'd have to be more specefic..

Darken the skies, we are god

Login to post a reply

Server time is: 2024-09-19 23:06:33
Your offset time is: 2024-09-19 23:06:33