From: ChrisH Date: 2007-02-24T02:00:13+09:00 Subject: Re: undefined method `at' for nil:NilClass in parseexcel.hel On Feb 23, 6:57 am, Ruhul Amin wrote: > Raj Sahae wrote: > > I don't know anything about the parseexcel library, but I can at least > > explain the error. > > The error you are getting simply says that the object"row", which is the > > parameter you pass into your block from worksheet.each, is an instance > > of Nil, and not an Array. So either the parse, workbook, or worksheet > > is returning Nil somewhere. > > thx for ur response. I also guessed so. but why? The problem comes > when i try to read japanese text. Any other way by which i can read > japanese > text to in my mysql database. > > problems are: > 1. japanese text > 2. read data from the particular cell > > plz help me with some sample code. > > waiting for ur response > > Amin > > -- > Posted viahttp://www.ruby-forum.com/. It looks like when a row contains no data it is set to nil. Are certain the row you are reading has data? Cheers Chris