-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetErrorDesc.txt
56 lines (46 loc) · 1.38 KB
/
GetErrorDesc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* @SIGNATURE:
* #GetErrorDesc
*
* @PARAMETERS:
* errorcode
*
* @HISTORY:
* Created: 2019-01-04 by Mike Duncan
* Modified: 2019-01-07 by Mike Duncan, added multi-language support.
*
* @PURPOSE:
* Display the text result of an error, look up from table listed in documentation of error codes
* https://fmhelp.filemaker.com/help/17/fmp/en/index.html#page/FMP_Help%2Ferror-codes.html%23ww1030072
*
* The above is for english codes, change the country code in the url for other languages.
*
* @RESULT:
* The description from a given error code
*
* @NOTES:
* This function requires JSON functions available in FileMaker 16+
* Usage example:
* GetErrorDesc ( Get ( LastError ) )
*
* If you do not need multi-language support, you can use any of the individual custom functions referenced below.
*
*/
Case (
Get(SystemLanguage) = "Japanese";
GetErrorDesc_ja ( errorcode );
Get(SystemLanguage) = "Korean";
GetErrorDesc_ko ( errorcode );
Get(SystemLanguage) = "Italian";
GetErrorDesc_it ( errorcode );
Get(SystemLanguage) = "Spanish";
GetErrorDesc_es ( errorcode );
Get(SystemLanguage) = "German";
GetErrorDesc_de ( errorcode );
Get(SystemLanguage) = "French";
GetErrorDesc_fr ( errorcode );
Get(SystemLanguage) = "Portugese";
GetErrorDesc_pt ( errorcode );
/* return english as default */
GetErrorDesc_en ( errorcode )
)