On Dec 30, 2008, at 5:57 AM, Tomasz Krakowski wrote: > Hello all, I'm new here and i have a problem... Welcome. > Can you tell me what I'm doing wrong? I'll try to help. > 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? I don't see an obvious problem with the code, so I suggest we start by validating ParsePING(). Without using HighLine at all, can you just manually call it with a few different parameters and make sure it is doing what you expect? James Edward Gray II