home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 3 / Developers_Source_Vol_03_1996.iso / parad / jul94 / dhfig04b.gif < prev    next >
Graphics Interchange Format  |  1995-09-26  |  42.1 KB  |  452x360  |  8-bit (255 colors)
   ocr: BARCODEEZIPaChangevalue nethod changevalue(uar eventinfo valuetvent) var digit Smallint counter Nunber countFrac Nunber thezip string endvar doDefault : If Zipcode is in 9 digit fornat, renove hyphen. if ZIP.s1ze() - 10 then thezip = Z1P.substr(1,5) * 41p.substr(f,4) else thezip - ZIP endif Sun the Zipcode digits counter L 0 : Set counter to zero for Digit fron 1 to thezip.size() counter - counter * NunDer(thezip-SuDstr(1g1t,1)) endFor If the digits total 0, the correction digit LE 0, else calculate correction digit (Modulo 10) countFrac LE counter/10 if countFrac.fraction() - 0 then correctpi ...