From: Tomasz Krakowski <4life@...> Date: 2009-01-07T17:36:20+09:00 Subject: Re: Highline - question with multiple choices James Gray wrote: > I promise to use that to fix any bugs it uncovers. Fair enough? Thank you James for your patience :) Here is sample script: #!/usr/bin/env ruby -wKU require "rubygems" require "highline/import" ip = [ ["tvp1", "219.239.2.1"], ["tvp2", "219.239.2.2"], ["tvp info", "219.239.2.3"], ["polsat", "219.239.2.4"], ["tvn", "219.239.2.5"], ["tvp kultura", "219.239.2.6"], ["tvp polonia", "219.239.2.7"], ["tvp historia", "219.239.2.9"]] choose do |menu| menu.prompt = "Please choose your test: " for j in 0..ip.length-1 menu.choice(:"#{ip[j][0]}\t\t\t#{ip[j][1]} ", "blabla#{j}") do puts "#{ip[j][0]}\t\t\t#{ip[j][1]} - your choice" end end#for end on my compilation there is always executed last option. Does not matter which one you pick. Regards -- Posted via http://www.ruby-forum.com/.