Hi,
This is an example of a file that I read in. However the addresses entered could be 1 upto 7 lines.
*********************************************** TESTID_10
Address:
30 Choyce Close
Atherstone
Warwickshire
Country:
GB
Search-Results:
20
*********************************************** TESTID_20
Address:
Hamilton Chartered Surveyors
Aidy Street
Bath
Country:
GB
Search-Results:
1
*********************************************** TESTID_30
These are examples of object names
$ie.text_field(:name, 'A11').set(line)
$ie.text_field(:name, 'A12').set(line)
$ie.text_field(:name, 'A13').set(line)
At the moment I am trying to add 0 or 1 onto 'A11' like this
def enter_data
x=0
read_in_test_data.each { |x|
line = x.chomp
next if line.upcase == 'ADDRESS:'
object_name = 'A' & "#{11+x}"
p object_name
$ie.text_field(:name, object_name).set(line)
x+=1
}
end
However when I try to run this I get "String can't be coerced into Fixnum (TypeError)"
Could anyone please help?
Thanks
Aidy
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
