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 Discussion / help me out

Author
Message
fyb
21
Years of Service
User Offline
Joined: 4th Feb 2004
Location:
Posted: 4th Feb 2004 19:14
How do I make a program that counts a number (cls:x=x+1:print x for example) in the background and lets the user input at the same time??

fyb
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 4th Feb 2004 23:29
you write your own input routine, eg



would allow you to enter strings while the values "number" and "another" are being altered by the program, this simple example allows you to backspace over errors, if you want more in the way of editing then you need to find what codes the keys return for "unprintable" characters, cheers.

Mentor.

System spec : Pentium 3.0Ghz, 512MB DDR, 2x160Gb HD (using icewave hd coolers ), DVD RW/CD RW (all modes), multimedia front panel, 6 way surround sound, ATI radeon 9800Pro 128mb.
Doucan
21
Years of Service
User Offline
Joined: 26th Nov 2003
Location: Vermont USA
Posted: 7th Feb 2004 00:58
Mentor: How much did your computer cost?

Completed Doucan movies: Doucan year of the Monkey, Doucan II: the revenge of Mortakia. Current project: Doucan movie DVD resoration. Progress: 20%

Login to post a reply

Server time is: 2025-05-22 12:33:39
Your offset time is: 2025-05-22 12:33:39