From: Tomasz Krakowski <4life@...> Date: 2008-12-30T20:57:48+09:00 Subject: Re: Highline - question with multiple choices Hello all, I'm new here and i have a problem... Can you tell me what I'm doing wrong? Here is fragment of my code: choose do |menu| menu.prompt = "Please choose your test: " for j in 0..ip.length-1 menu.choice(:"#{ip[j][0]}\t\t\t\t#{ip[j][1]} : #{port}", "blahblah#{j}") do system "cls" ParsePING(ip[j][0], ip[j][1], port) end end#for end All options prints great. But when I choose any option, always executes only last one... It looks like every menu option have implemented ParsePING function with last j parameter. Can someone help? Kraku Happy new year for everyone! -- Posted via http://www.ruby-forum.com/.