Hi, I am a dev-pascal program maker that wants to know how to read a line for a limited amount of time. Like for example, if I only wanted to give the user 1 second or 1 milisecond to send in data, how do I do it?

Re: how do i readln for an amount of time? 80 80

you can make this by using a repeat or while cycle and a function which is using clock time of your pc.

take a look here http://www.daniweb.com/techtalkforums/thread26525.html
http://www.gnu-pascal.de/crystal/gpc/en/mail3871.html


best regards,

Re: how do i readln for an amount of time? 80 80

That doesn't work. That would just read a line multiple times.

Re: how do i readln for an amount of time? 80 80

Never mind, I found it.

if keypressed then ...
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.