in reply to Re: Re: formatting zipcodes
in thread formatting zipcodes

If you are writing this code for international use remember that not all postal codes are five digits. The post codes in Australia, for example, are 4 digits long.

Replies are listed 'Best First'.
Re: Re: Re: Re: formatting zipcodes
by DamnDirtyApe (Curate) on Apr 15, 2002 at 04:15 UTC
    ...and in Canada, it's letter-number-letter number-letter-number.
    _______________
    D a m n D i r t y A p e
    Home Node | Email
Re: Re: Re: Re: formatting zipcodes
by badblk (Monk) on Apr 15, 2002 at 11:53 UTC
    Not wanting to re-state the obvious I will make this short. I have the joy of working with both US and Canadian Addresses (maybe Mexico soon) and the best solution is to just format them as strings as stated below (and above i believe) with double quotes. This gets around all the stupid thinks like spaces, letters and US postal zip codes (5-4 format).