prompts5 = ["Span type"]
defaults5 = ["1. Simply supported"]
@t_slab = ["1. Simply supported |2. Interior span |3. End span |4.
Cantilever"]
list5 = [@t_slab]
title5="Please select the type of the span"
@input_tslab = inputbox prompts5, defaults5, list5,title5

kay_array = [1.0, 1.5, 1.3, 0.4]
@ka = kay_array[(@input_tslab).to_i-1]


If "3. End span" is selected by in the UI, following error is
displayed..

Error: #<NoMethodError: undefined method `to_i' for ["3. End span
"]:Array>
-- 
Posted via http://www.ruby-forum.com/.