Brian Dunning's FileMaker Custom Functions

IsValidIP ( IPaddress )

Checks if 'IPaddress' contains a valid IP address.

  Average rating: 4.1 (40 votes) Log in to vote

Theo Ros   Theo Ros
n/a
n/a

Share on Facebook Share on Twitter

  Sample input:
IsValidIP ( "192.168.0.1" )
  Sample output:
True

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Checks if 'IPaddress' contains a valid IP address.
The given IPaddress should be in dotted format.

Returns True (1) if IPaddress is valid, False (0) if not. An empty string also returns False.

In: IPaddress - the dotted IP address as string
Syntax: IsValidIP ( "192.168.0.1" )

Return type: Number (boolean)

 

Comments

Nick Lightbody   Nick Lightbody, Deskspace Systems Limited
Jul 6, 2010
Very useful, works as described, thanks

Nick
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.