Brian Dunning's FileMaker Custom Functions

CheckReservedSQL ( keyword )

This function checks if a given keyword is an SQL reserved word or contains invalid characters, returning either an “OK” message or a warning.

  Be the first to rate this function Log in to vote

Jonni™   Jonni™ - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
CheckReservedSQL ( "Select" )
  Sample output:
Reserved

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

The function takes an input keyword, converts it to uppercase, and checks if it appears in a predefined list of SQL reserved words stored in JSON format. It also examines whether the keyword contains any special characters or spaces that are not allowed. If the keyword is found in the list, it returns “Reserved”; otherwise, it returns “OK.” Additionally, if the keyword contains prohibited characters like spaces or symbols (@, #, $, etc.), the function returns an error message specifying the invalid character.

 

Comments

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 21 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: