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/.