Re: Break out of the sub or loop on keypress

2008-08-09 Thread Rob Dixon
Michael Alipio wrote: > > I have a sub that returns a value and inside it runs a loop that displays > something on the screen, say a list of numbered items. Now what I want to do > is if the item i'm interested appears on the screen, the user can hit any key > and the program will exit the sub an

Re: Break out of the sub or loop on keypress

2008-08-09 Thread Mr. Shawn H. Corey
On Sat, 2008-08-09 at 14:42 -0700, Michael Alipio wrote: > Hi, > > I have a sub that returns a value and inside it runs a loop that displays > something on the screen, say a list of numbered items. Now what I want to do > is if the item i'm interested appears on the screen, the user can hit any

Break out of the sub or loop on keypress

2008-08-09 Thread Michael Alipio
Hi, I have a sub that returns a value and inside it runs a loop that displays something on the screen, say a list of numbered items. Now what I want to do is if the item i'm interested appears on the screen, the user can hit any key and the program will exit the sub and return what ever it is s