From: Chintan Trivedi Date: 2005-12-22T18:32:09+09:00 Subject: Re: Problem with: Exception: cannot convert Class into String ------=_Part_1578_13340101.1135243916721 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline even workStrings[0,1] will work too. 0 is the start position and 1 indicates how many chars to read from that position unlike C, in ruby string[0] returns the ascii value of the char at positon = 0 and not char. On 12/22/05, basi wrote: > > Hi, > I found the problem. I should convert the value to a string: > > Wrong (for my purpose) > aString =3D workStrings[0] > > I got it to work with: > aString =3D workStrings[0].to_s > > Cheers, > basi > > > ------=_Part_1578_13340101.1135243916721--