in reply to Re: formatting zipcodes
in thread formatting zipcodes

perfect, thanks(all) for the quick reply

Replies are listed 'Best First'.
Re: Re: Re: formatting zipcodes
by tomazos (Deacon) on Apr 15, 2002 at 00:01 UTC
    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.
      ...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
      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).