Expand Minimize
This topic has not yet been rated - Rate this topic

IsZipCodeValid - Solution Sites Routine

Commerce Server 2002

This function determines whether the basic format of the zip code specified by the sZipCode parameter is correct, returning True if so, and False otherwise. For additional information, see the Remarks.

Definition

Function IsZipCodeValid(
  sZipCode
)

Defined in File

include\addr_lib.asp

Routines Called

None.

Called By

iValidateSubmittedAddress

iValidateSubmittedAddressForAddressBook

Remarks

The following formats are considered valid:

Format, where "d" is a digitExample
ddddd-dddd98052-0000
ddddddddd980520000
ddddd dddd98052 0000
ddddd-98052-
ddddd98052

You may add further validation logic to this function to ensure zip code entered is in existence or that it matches the state/province entered by the user.

Copyright © 2005 Microsoft Corporation.
All rights reserved.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.