From: Belorion Date: 2005-07-29T00:37:42+09:00 Subject: Re: Newbie question On 7/28/05, Greg Lorriman wrote: > ruby 1.8.2 (2004-12-25) [i386-mswin32] > > Hi folks, > > I'm stumped by a syntax error. The error itself isn't telling me enough, I > think. It looks like you haven't closed one of your if statements: In appClasses.rb, def setFromNativeRef!(nativeRef) md=/\D+/.match(nativeRef) if (!md) <---------------- This if does not have a corresponding end raise 'Invalid cell reference :'+nativeRef colStr=md[0].upcase if colStr.length==2 high=colStr[0]-65 low=colStr[1]-65 @col=high*26+low else @col=colStr[0]-65 end @col=md[0] @row=md.post_match self end If you want to use a single line if statement, use this: raise 'Invalid cell reference :'+nativeRef if (!md)