From: Mmcolli00 Mom Date: 2008-08-06T03:38:45+09:00 Subject: While loop with fixnum - not working 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 -- Posted via http://www.ruby-forum.com/.