re: ssn indexing
Posted in 1994
> > jack, > > here's my stab at this - it does a little more error checking in the > char_to_int (rename ssn_to_int) routine. just out of curiousity, why > did you use the MOD function? Ha! I answered this days ago. But for everybody else... I have a fondness for MOD and generally think of it first when parsing numbers. I hadn't even considered turning it to a string and parsing it. Bob's int_to_ssn() seems to be at least twice as fast as mine. As for error checking, I would rely on the form attribute to cover that picture="###-##-####" j. _____________________________________________________________________________ Jack Parker | Hewlett Packard, BSMC Boise, Idaho, USA| Runaway truck on the jparker@hpbs3645.boi.hp.com | Information Superhighway _____________________________________________________________________________ Any opinions expressed herein are my own and not those of my employers. _____________________________________________________________________________