From: Hiato Xaero Date: 2007-10-30T23:52:37+09:00 Subject: Array and ASCII Help needed... ------=_Part_3060_21968767.1193755952988 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello there, I have just recently started Ruby (because it is such a beautiful language) and was just about two things (NOTE: I have a very strong Delphi background so the code may not be the Ruby way of ding things) 1st : How one would extract the ASCII value from an Object variable, for example @l = @txt[k,1] @n = ?@l where @n = 0 The problem with that is that I end up merely extracting the ascii value for '@' and get errors for trying to something it with unknown 'l' 2nd : How does one tell Ruby to give a variable (integer) a particular number from an array, for example @n = @@da[p,@n] where @@da = [[]] is the equivilent of the Delphi way (which works with puts in Ruby) but it automatically makes @n an array instead of just that single value... Please comment/suggest/criticise where necissary Thanks anywho Hiato ------=_Part_3060_21968767.1193755952988--