comp.lang.ada
 help / color / mirror / Atom feed
From: "F" <phosphorus@libero.it>
Subject: please help me!!!!!!
Date: Thu, 18 Oct 2001 09:33:40 +0200
Date: 2001-10-18T09:33:40+02:00	[thread overview]
Message-ID: <9qm0di$25sj$1@newsreader1.mclink.it> (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






             reply	other threads:[~2001-10-18  7:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-18  7:33 F [this message]
2001-10-18 11:04 ` please help me!!!!!! John McCabe
2001-10-18 13:04 ` F
2001-10-18 17:34 ` Jeffrey Carter
2001-10-18 17:59   ` Jeffrey Carter
replies disabled

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