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™ - Show more from this author |
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
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.