Thanks eval is good. What I have is database with fields 
name1,name2,name3,name4.. and

name=eval("name#{num}")

works!

Instead of something like
name = case num
  when 1; name1
  when 2; name2
..etc


Thank you
TheR

-- 
Posted via http://www.ruby-forum.com/.