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 - Show more from this author

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: