Check Valid Zip Code

 

Hey Friends,

This Post is all about validating a proper Zip Code. Just 2 3 lines of code needed and you can validate your zip code. So below is the line of code that you just need to write.

 

 

 

 

 

 

 

//RWN
IF NOT Regex.Match(ZipCode, ‘^\d{5}$’ ).Success THEN
EXIT(FALSE)
ELSE
EXIT(TRUE);
//RWN

Regex           DotNet                  System.Text.RegularExpressions.Regex.’System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′

CHEERS

4 comments on “Check Valid Zip Code

  1. Pingback: Check Valid Zip Code - Microsoft Dynamics NAV Community

  2. Pingback: Check Valid Zip Code - Dynamics NAV by RockWithNAV - Dynamics NAV Users - DUG

Leave a comment