From: Love U Ruby Date: 2013-02-16T01:37:40+09:00 Subject: Re: [from BASIC to Ruby] so, what's the proper way to replace funcionality of GOTO ? Stu P. D'naim wrote in post #1097111: > I need to make few scripts for tasks I do often manually, but last time > I programmed something was almost 20 years ago in high school, we used > some BASIC dialect. Since no one uses BASIC nowdays, I decided to give a > try to Ruby (I also tried Python, but it's strict indentation is driving > me insane). > > I watched Ruby Essentials Video from Lynda.com (twice), and I pretty > much understand almost all of it, but still, I'm having trouble to adapt > how to structure my programs (without using of GOTO) > > > Here's a simple example written in FreeBASIC (it works) > --------------------------------------------------------------------- > Dim As Integer strKeyPres Yes, It has. You can try "catch - throw" in Ruby's world. Thanks -- Posted via http://www.ruby-forum.com/.