Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

You don't have to use CLS all of the time!

Status
Not open for further replies.

Xero

Programmer
Nov 1, 2000
2
US
If you will be replacing something, such as changing text color or drawing a picture over another then redrawing the bottom graphic, the why use CLS? It just makes the screen flicker. Why try LOCATE for text (rewrite and even changing colors!) and the same graphic commands you used before. Although this might sound like a novice talking here, (i'm not, by the way) it will make your programs faster and smoother. Try it! It'll work! :)
 
Xero, what do you recommend we use instead of [tt]LOCATE?

OPEN "SCRN:" FOR OUTPUT AS #1
SEEK #1, 35
PRINT #1, "Hello World"
[/tt]

I could never get that to work properly. B-)

VCA.gif
 
kb244,

You're right about the Locate (row, column) thing. It would require text to screen output. But Alt255 has a point about using the OPEN command for output to the screen. Although, I've only used it for debug purposes, I've never created an app that required a redirection like that. But it still could happen.

Alt255,

All I can think of is placeing either an IF/THEN routine or a SELECT CASE. and replacing the output name with a programmer's variable. Example to follow:

Input "press 1 for file, press 2 for screen. ", Ans!
if ANS!=1 then Filename$="SomeFile.Nam"
if ANS!=2 then Filename$="SCRN:"

and work off of that. But you do have a point, as I stated earlier.




English is too hard to learn, the vowles change too much like come/home, comb/tomb, book/school, high/bye/sty, etc., etc. So should I say Geez or Sheez or Cheeze? hehe.
 
Sorry, but on my post I meant to say why "not" try locate. Also, don't try using "SCRN:". Try "CON". I've found it to work out. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top