Brian Dunning's FileMaker Custom Functions

getError

Retrieves the result of Get ( LastError ) and sets 2 additional variables to help with debugging.

  Average rating: 4.0 (1 vote) Log in to vote

Josh Ormond   Josh Ormond - Show more from this author
Iozax, LLC
http://iozax.com

Share on Facebook Share on Twitter

  Sample input:
getError
  Sample output:
Function result: 301
$errorDetail: account name of the user with the record lock
$errorMessage: "ERROR # 301: Record is in user by another user" ( no quotes )

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

Returns the result of Get ( LastError ), and sets two additional variables named $errorDetail, and $errorMessage.
• Get ( LastExternalErrorDetail ) in FM16, or above, returns the account name of the user with the record lock.
• errorMessage ( ) returns the text of the description of the error number from the Get ( LastError ) function.

Requires the custom function errorMessage ( ): https://www.briandunning.com/cf/2265

 

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