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

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s