-----------------------------------------------
                      FOXPRO SYS() FUNCTIONS (UNDOCUMENTED)
                                 January 2017
                 -----------------------------------------------
                                    CCB



1. THE SYS() FUNCTIONS (from dv_foxhelp9.chm):

     Visual FoxPro 9.0 (9.0.0.7423) Language Reference.
     SYS() Functions Overview
 
     Returns Microsoft Visual FoxPro system information.
	
     SYS()

     Return Value
     Character
     Remarks
     Visual FoxPro SYS() functions return character values that contain useful system information.
     The following table shows what each SYS() function returns:

     -------------------------------------------------------------------------------------------------------------
     | Function                   | Information returned                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(0)                     | Network machine information.                                                 |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1)                     | Julian system date.                                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2)                     | Seconds since midnight.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3)                     | Legal file name.                                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4)???                  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(5)                     | Default drive or volume.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(6)                     | Current printer device.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(7)                     | Current format file.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(8)???                  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(9)                     | Visual FoxPro serial number.                                                 |
     -------------------------------------------------------------------------------------------------------------
     | SYS(10)                    | String from Julian day number.                                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(11)                    | Julian day number.                                                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(12)                    | Available memory in bytes.                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(13)                    | Printer status.                                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(14)                    | Index expression.                                                            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(15)                    | Character translation.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(16)                    | Executing program file name.                                                 |
     -------------------------------------------------------------------------------------------------------------
     | SYS(17)                    | Processor in use.                                                            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(18)                    | Current control.                                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(19)???                 | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(20)                    | Transform German text.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(21)                    | Controlling index number.                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(22)                    | Controlling tag or index name.                                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(23)                    | FoxPro EMS memory usage.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(24)                    | EMS memory limit.                                                            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(25) to SYS(99)???      | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(100)                   | Console setting. Included for backward compatibility.                        |
     |                            | Use SET("CONSOLE") instead.                                                  |
     -------------------------------------------------------------------------------------------------------------
     | SYS(101)                   | Device setting. Included for backward compatibility.                         |
     |                            | Use SET("DEVICE") instead.                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(102)                   | Printer setting. Included for backward compatibility.                        |
     |                            | Use SET("PRINTER") instead.                                                  |
     -------------------------------------------------------------------------------------------------------------
     | SYS(103)                   | Talk setting. Included for backward compatibility.                           |
     |                            | Use SET("TALK") instead.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(104)???                | SYS(104): Unknown function, return empty string.                             |
     |                            | SYS(104,0): Unknown function, return empty string.                           |
     |                            | SYS(104,1): Unknown function, return empty string.                           |
     |                            | SYS(104,other): error 385 (Function argument value, type,                    |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(105) to SYS(601)???    | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(602)                   | Bitmap Configuration.                                                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(603) to SYS(985)???    | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(986)???                | SYS(986): Unknown function, return .F.                                       |
     |                            | SYS(986,0): Unknown function, return .T.                                     |
     |                            | SYS(986,1): Unknown function, return .T.                                     |
     |                            | SYS(986,2): Unknown function, return .T.                                     |
     |                            | SYS(986,3): Unknown function, return .T.                                     |
     |                            | SYS(986,4): Unknown function, return .T.                                     |
     |                            | SYS(986,5): Unknown function, return .T.                                     |
     |                            | SYS(986,6): Unknown function, return .T.                                     |
     |                            | SYS(986,7): Unknown function, return .T.                                     |
     |                            | SYS(986,8): Unknown function, return .T.                                     |
     |                            | SYS(986,9): Unknown function, return .T.                                     |
     |                            | SYS(986,10): Unknown function, return .T.                                    |
     |                            | SYS(986,>10): Unknown function, return .F.                                   |
     |                            | SYS(986,0,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,1,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,2,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,3,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,4,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,5,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,6,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,7,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,8,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,9,.T.|.F.): Unknown function, return .T.|.F.                         |
     |                            | SYS(986,10,.T.|.F.): Unknown function, return .T.|.F.                        |
     |                            | SYS(986,>10,.T.|.F.): Unknown function, return .F.                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(987)                   | Map Remote Data to ANSI.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(988)???                | SYS(988): Unknown function, return SYS(988) current setting (.T.|.F.).       |
     |                            | SYS(988,.T.): set SYS(988)=.T., return SYS(988) previous setting.            |
     |                            | SYS(988,.F.): set SYS(988)=.F., return SYS(988) previous setting.            |
     |                            | SYS(988,other): error 385 (Function argument value, type,                    |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(989)???                | SYS(989): Unknown function, return SYS(989) current setting (1|0).           |
     |                            | SYS(989,1): set SYS(989)=1, return SYS(989) previous setting.                |
     |                            | SYS(989,0): set SYS(989)=0, return SYS(989) previous setting.                |
     |                            | SYS(989,other): error 385 (Function argument value, type,                    |
     |                            | or count is invalid (Error 11)).                                             |
     |                            | In the runtime version: error 1 (Feature is not available (Error 1001)).     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(990) to SYS(998)???    | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(999)???                | SYS(999,0-4999): Dialog resource number %d.                                  |
     |                            | SYS(999,other): error 385 (Function argument value, type,                    |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1000)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1001)                  | Visual FoxPro memory.                                                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1002)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1003)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1004)???               | Unknown function, return [Data9370a4] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1005)???               | Unknown function, return [Data93709c] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1006)???               | Unknown function, return [Data9476a4] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1007)???               | Unknown function, return [Data9476a4] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1008)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1009)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1010)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1011)                  | Number of Memory Handles.                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1012)???               | Unknown function, return [Data9370a8]-[Data9370a4]+[Data93709c]              |
     |                            | (int to string).                                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1013)???               | Unknown function, return 0x40000000-[Data937094] (int to string).            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1014)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1015)???               | Unknown function, return "0" (string).                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1016)                  | User object memory use.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1017)???               | Unknown function, return [Data9370ac] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1018)???               | Unknown function, return "Hold Index Lock during TableUpdate: On"            |
     |                            | or "Hold Index Lock during TableUpdate: Off".                                |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1019)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1020)???               | Resuming Normal Operation.                                                   |
     |                            | (Feature not available in Demo version).                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1021)???               | Diagnostic Mode Entered - SYS(1020) Exits.                                   |
     |                            | (Feature not available in Demo version).                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1022)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1023)                  | Enable Help diagnostic mode.                                                 |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1024)                  | Disable Help diagnostic mode.                                                |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1025)???               | Unknown function, return empty string.                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1026) to SYS(1027)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1028)???               | Unknown function, scan F00DDEAD, max 0x200 times, return empty string.       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1029)???               | SYS(1029): error 200 (Syntax error (Error 10)).                              |
     |                            | SYS(1029,0): creates old(fox) style menus.                                   |
     |                            | SYS(1029,1-65535): creates new(vfp) style menus.                             |
     |                            | SYS(1029,other): error 385 (Function argument value, type,                   |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1030)???               | SYS(1030): Unknown function, return "0"|"1" (string).                        |
     |                            | SYS(1030,0): set SYS(1030)=0, return "0" (string).                           |
     |                            | SYS(1030,1): set SYS(1030)=1, return "1" (string).                           |
     |                            | SYS(1030,other): error 385 (Function argument value, type,                   |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1031) to SYS(1036)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1037)                  | Page Setup Dialog Box.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1038)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1039)???               | SYS(1039): Unknown function, error 302 (Data type mismatch (Error 9)).       |
     |                            | SYS(1039,0): return "OFF".                                                   |
     |                            | SYS(1039,#0): return "ON".                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1040) to SYS(1077)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1078)???               | SYS(1078): Unknown function, return empty string.                            |
     |                            | SYS(1078,0): set [Data93cc00]=0, return empty string.                        |
     |                            | SYS(1078,#0): set [Data93cc00]=1, return empty string.                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1079)???               | SYS(1079): Messagebox("Cause an intentional crash for test purposes",1),     |
     |                            | OK or Cancel?                                                                |
     |                            | SYS(1079,any): C0000005 crash.                                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1080) to SYS(1100)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1101)???               | Unknown function, return [Data9370d4] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1102)???               | Unknown function, return [Data937584] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1103)???               | Unknown function, return [Data937584]-[Data9392ac] (int to string).          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1104)                  | Purge Cached Memory.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1105)???               | Unknown function, return [Data937784] (int to string).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1106) to SYS(1268)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1269)                  | Property Information.                                                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1270)                  | Object Location.                                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1271)                  | Object's .SCX File.                                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1272)                  | Object Hierarchy.                                                            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1273) to SYS(1499)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1500)                  | Activate a menu item.                                                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(1501) to SYS(1999)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2000)                  | File name wildcard match.                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2001)                  | SET command status.                                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2002)                  | Turn insertion point on or off.                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2003)                  | Current directory.                                                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2004)                  | Visual FoxPro start directory.                                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2005)                  | Current resource file.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2006)                  | Current graphics card.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2007)                  | Checksum value.                                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2008)???               | Specifies shape of insert and overwrite mode cursors (for MS-DOS only).      |
     |                            | SYS(2008): [Data93a7f4]=1543, [Data9321c8]=7.                                |
     |                            | SYS(2008,"I..."|"i..."): [Data93a7f4]=1543.                                  |
     |                            | SYS(2008,"O..."|"o..."): [Data93a7f4]=7.                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2009)???               | Swaps the shape of the insert and overwrite mode cursors (for MS-DOS only).  |
     |                            | exchange 1, [Data93a7f4]=7, [Data9321c8]=1543.                               |
     |                            | exchange 2, [Data93a7f4]=1543, [Data9321c8]=7.                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2010)                  | CONFIG.SYS file settings.                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2011)                  | Current lock status.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2012)                  | Memo field block size.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2013)                  | System menu name string.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2014)                  | Minimum path.                                                                |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2015)                  | Unique procedure name.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2016)                  | SHOW GETS WINDOW name.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2017)                  | Checksum value based on the current record in the current work area.         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2018)                  | Error message parameter.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2019)                  | Configuration file name and location.                                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2020)                  | Default disk free space.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2021)                  | Filtered index expression.                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2022)                  | Disk cluster (block) size.                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2023)                  | Temporary Path.                                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2024)                  | Detect report cancellation                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2025)???               | Call WNetGetUser(), If the function succeeds then return "Y",                |
     |                            | If the function fails (ERROR_NO_NETWORK) then return "N".                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2026)???               | SYS(2026): error 385 (Function argument value, type,                         |
     |                            | or count is invalid (Error 11)).                                             |
     |                            | SYS(2026,filename): if the file is a calling form file (.SCX)                |
     |                            | then return "Y", else return "N".                                            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2027)???               | Returns an MS-DOS path with Macintosh path notation.                         |
     |                            | SYS(2027,filename): Same as LOWER(FULLPATH(filename)).                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2028)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2029)                  | Table type.                                                                  |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2030)                  | Debug.                                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2031) to SYS(2032)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2033)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2034) to SYS(2039)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2040)                  | Detect Report Status.                                                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2041) to SYS(2049)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2050)???               | SYS(2050): Unknown function, return 0 (number).                              |
     |                            | SYS(2050,0-10): return the parameter sent in (number).                       |
     |                            | SYS(2050,other): error 385 (Function argument value, type,                   |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2051) to SYS(2059)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2060)                  | Mouse wheel event handling setting.                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2061) to SYS(2299)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2300)                  | Add or Remove Code Page.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2301)to SYS(2324)???   | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2325)                  | Returns the hWnd of a client window from the parent window's WHANDLE.        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2326)                  | Returns a Visual FoxPro WHANDLE from a window's hWnd.                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2327)                  | Returns a window's hWnd from a Visual FoxPro window's WHANDLE.               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2328) to SYS(2331)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2332)???               | SYS(2332): Unknown function, return "0" (string).                            |
     |                            | SYS(2332,object): if not a valid ActiveX object then error 420               |
     |                            | (OLE object is invalid or corrupted (Error 1420)).                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2333)                  | ActiveX Dual Interface Support.                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2334)                  | Automation Server Invocation Mode (only in the runtime version).             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2335)                  | Unattended Server Mode (only in the runtime version).                        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2336)                  | Critical Section Support (only in the multithreaded runtime version).        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2337)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2338)???               | SYS(2338): Unknown function, return empty string.                            |
     |                            | SYS(2338,string): if len(string)<=8 then return the input string,            |
     |                            | if len(string)>8 then error 385 (Function argument value, type,              |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2339)                  | Call CoFreeUnusedLibraries when COM object is released.                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2340)                  | NT Service Support.                                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2341) to SYS(2399)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2400)???               | SYS(2400): Unknown function, return "0" (string).                            |
     |                            | SYS(2400,0): return "0" (string).                                            |
     |                            | SYS(2400,1): return empty string.                                            |
     |                            | SYS(2400,other): error 385 (Function argument value, type,                   |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2401) to SYS(2409)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2410)                  | Error handler type for an error.                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2411) to SYS(2449)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2450)                  | Application Search Path Order.                                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2451) to SYS(2599)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2600)                  | Return Pointer As String.                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2601) to SYS(2699)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2700)                  | Enables Windows XP Themes.                                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2701)???               | Unknown function, wsprintf(buf,"{l:%d,t:%d, w:%d, h:%d}",                    |
     |                            | left,top,width,height), allways return "{l:0,t:0, w:0, h:0}".                |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2702) to SYS(2799)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2800)                  | Accessibility Support.                                                       |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2801)                  | Event Tracking Support.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2802) to SYS(2900)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2901)???               | SYS(2901): Unknown function, return empty string.                            |
     |                            | SYS(2901,number): return VFP message string, the number is                   |
     |                            | 2bit + 6bit + 8bit = 16bit, so SYS(2901,number+2^16*n)=SYS(2901,number).     |
     |                            | if error (not found) then return empty string.                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2902) to SYS(2909)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2910)                  | Sets or returns the number of items to display in drop down list boxes.      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(2911) to SYS(3000)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3001)???               | SYS(3001): Unknown function, error 385 (Function argument value, type,       |
     |                            | or count is invalid (Error 11)).                                             |
     |                            | SYS(3001,number): Unknown function, return empty string.                     |
     |                            | SYS(3001,number,string1,string2): Unknown function, return empty string.     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3002) to SYS(3003)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3004)                  | Return Locale ID.                                                            |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3005)                  | Set Locale ID.                                                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3006)                  | Set Language and Locale IDs.                                                 |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3007)                  | Specifies a font language script for ToolTips.                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3008)                  | Hyperlink Tooltips.                                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3009)                  | Bidirectional text justification for ToolTips.                               |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3010) to SYS(3049)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3050)                  | Set Buffer Memory Size.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3051)                  | Set Lock Retry Interval.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3052)                  | Override SET REPROCESS Locking.                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3053)                  | ODBC Environment Handle.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3054)                  | Rushmore Query Optimization Level.                                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3055)                  | FOR and WHERE Clause Complexity.                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3056)                  | Read Registry Settings.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3057) to SYS(3064)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3065)                  | Internal Program Cache.                                                      |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3066) to SYS(3069)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3070)???               | Unknown function, Icecap profiling turned on.                                |
     |                            | LoadLibrary("icecap.dll"), return empty string.                              |
     |                            | In Visual FoxPro Advanced (x64), VSPerf100 profiling turned on.              |
     |                            | LoadLibrary("VSPerf100.dll"), return empty string.                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3071)???               | Unknown function, Icecap profiling turned off.                               |
     |                            | If LoadLibrary("icecap.dll") failed, return empty string.                    |
     |                            | In Visual FoxPro Advanced (x64), VSPerf100 profiling turned off.             |
     |                            | If LoadLibrary("VSPerf100.dll") failed, return empty string.                 |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3072) to SYS(3089)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3090)???               | SYS(3090): Unknown function, return SYS(3090) current setting 0|1 (number).  |
     |                            | SYS(3090,0): set SYS(3090)=0, return SYS(3090) previous setting.             |
     |                            | SYS(3090,1): set SYS(3090)=1, return SYS(3090) previous setting.             |
     |                            | SYS(3090,other): error 385 (Function argument value, type,                   |
     |                            | or count is invalid (Error 11)).                                             |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3091)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3092)                  | Output Rushmore Query Optimization Level                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3093)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3094)???               | SYS(3094): Unknown function, error 385 (Function argument value, type,       |
     |                            | or count is invalid (Error 11)).                                             |
     |                            | SYS(3094,object): return Object Reference.                                   |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3095)                  | IDispatch Pointer.                                                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3096)                  | IDispatch Object Reference.                                                  |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3097)                  | Add Reference to Object.                                                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3098)                  | Release Object Reference.                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3099)                  | SQL Data Engine Compatibility Mode.                                          |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3100)???               | SYS(3100): Unknown function, return empty string.                            |
     |                            | SYS(3100,number): Unknown function, return empty string.                     |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3101)                  | COM Code Page Translation                                                    |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3102)???               | SYS(3102): Unknown function, return SYS(3102) current setting (.T.|.F.).     |
     |                            | SYS(3102,.F.): set SYS(3102)=.F., return SYS(3102) previous setting.         |
     |                            | SYS(3102,.T.): set SYS(3102)=.T., return SYS(3102) previous setting.         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(3103) to SYS(3999)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4000)???               | Unknown function, error 1 (Feature is not available (Error 1001)).           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4001)???               | Unknown function, error 1 (Feature is not available (Error 1001)).           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4002)???               | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4003)???               | Unknown function, error 1 (Feature is not available (Error 1001)).           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4004)???               | Unknown function, error 1 (Feature is not available (Error 1001)).           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4005) to SYS(4009)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4010)???               | Unknown function, error 1 (Feature is not available (Error 1001)).           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4011) to SYS(4014)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4015)???               | Return 0 (number).                                                           |
     -------------------------------------------------------------------------------------------------------------
     | SYS(4016) to SYS(8999)???  | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(9000)                  | Automatic dock the dockable windows (only in Visual FoxPro Advanced).        |
     -------------------------------------------------------------------------------------------------------------
     | SYS(9001) to SYS(10000)??? | Return empty string.                                                         |
     -------------------------------------------------------------------------------------------------------------
     | SYS(<0)???                 | Same as SYS(0).                                                              |
     -------------------------------------------------------------------------------------------------------------
     | SYS(>10000)???             | Same as SYS(10000).                                                          |
     -------------------------------------------------------------------------------------------------------------


2. REFERENCE WEBSITES:

     1, baiyujia.com:
     http://www.baiyujia.com

     2, sweetpotatosoftware.com:
     http://www.sweetpotatosoftware.com/SPSBlog/CommentView,guid,04154aac-db86-4a65-acfd-8691ca1cb4fc.aspx

     3, mzvfp.com:
     http://www.mzvfp.com/read.php?tid=73389
     http://www.mzvfp.com/read.php?tid=98283

     4, foxite.com:
     https://www.foxite.com/archives/interesting-sys-command-0000205922.htm
     https://www.foxite.com/archives/menu-right-justify-problem-0000079259.htm

     5, foxpert.com:
     http://www.foxpert.com/knowlbits_200702.htm
     http://guineu.foxpert.com/help/index.html?commands.htm

     6, lafox.org:
     http://lafox.org/newsletter/archives/2000/July2000.htm

     7, foxclub.ru:
     http://forum.foxclub.ru/read.php?29,186940
     http://forum.foxclub.ru/read.php?26,468184

     8, microsoft.com:
     https://blogs.msdn.microsoft.com/calvin_hsia/2005/11/16/intentionally-crash-your-program/


3. OTHER:

     For reference only, there is no guarantees.

     Any questions or suggestions, please e-mail to ccb2000@163.com.