comp.lang.ada
 help / color / mirror / Atom feed
* please help me!!!!!!
@ 2001-10-18  7:33 F
  2001-10-18 11:04 ` John McCabe
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: F @ 2001-10-18  7:33 UTC (permalink / raw)


I want to "clean" the keyboard buffer after a user action, for example i
have a piece of a procedure such as
...
c:character; s:string(1..20); ind:integer:=1;
...
while not end_of_line loop
get(c);
s(i):=c;
i:=i+1;
end loop;

if a user writes "hello" and then press return i see that in my s string
there is the right information but now every time i recall the procedure the
function end_of_line starts with the true value and so the while loop is
skipped, i should try to clean the keyboard buffer after every user's press
of return.
I'm so sorry for my terrible english but i must understand in which way
solve this problem.
Thank you for your attenction
bye Phosphorus






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-18 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-18  7:33 please help me!!!!!! F
2001-10-18 11:04 ` John McCabe
2001-10-18 13:04 ` F
2001-10-18 17:34 ` Jeffrey Carter
2001-10-18 17:59   ` Jeffrey Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox