phat code Is the glass half empty, half full, or twice as large as it needs to be?
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
Plasma Tue Jan 29 2008 at 11:52 pm
yes
 
 
Use INKEY$ to check for the key being pressed. CHR$(0) + "H" is up, CHR$(0) + "P" is down.

If the file is relatively small you can load the whole thing into a string array and just change the start index when up/down is pressed. Then display ~20 lines from the start index on the screen. (Don't forget bounds checking)

If the file is large, then you will have to use SEEK and only read in 20 lines at a time.
 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.