M
Mmcolli00 Mom
I can't get the while loop to work. When I set ErrorCount.Class it
outputs Fixnum. Do you think that this is the reason that that the while
will not execute? Thanks in advance. Mom Mcolli00
it ("Search for FieldId Tag containing error in XML file") do
ErrFieldID= get_xml_attrib_value(ie, "Error","FieldID")
ErrorCount = ErrFieldID.size #this lets me know what size the array
is
puts ErrorCount.class #this shows that it is a Fixnum
ErrorCount.to_int #this does nothing
puts "Total Claim Errors"
puts ErrorCount #shows correct count!
end
#this while structure will not work
While ErrorCount > 0
ErrFieldID = get_xml_attrib_value(ie,"Error","FieldID")
code to correct error
End
outputs Fixnum. Do you think that this is the reason that that the while
will not execute? Thanks in advance. Mom Mcolli00
it ("Search for FieldId Tag containing error in XML file") do
ErrFieldID= get_xml_attrib_value(ie, "Error","FieldID")
ErrorCount = ErrFieldID.size #this lets me know what size the array
is
puts ErrorCount.class #this shows that it is a Fixnum
ErrorCount.to_int #this does nothing
puts "Total Claim Errors"
puts ErrorCount #shows correct count!
end
#this while structure will not work
While ErrorCount > 0
ErrFieldID = get_xml_attrib_value(ie,"Error","FieldID")
code to correct error
End