Re: Loop

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello,

>Is there any command to cause a program to loop over and over until
control+c
>is pressed?

I believe that putting the whole prog in this loop should do the trick:

integer k
while 1 do
-- program code or main procedure
k = get_key()
end while

I think that ctrl+C will exit any Euph prog while it is looking for
keyboard input.  At least ctrl+break should work.  There may even be a
simpler way to do this but I can't test it on my mailer.

Lewis Townsend


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu