home *** CD-ROM | disk | FTP | other *** search
- // SYS.CH
- // Employee Information definitions
- // November, 1993
- //----------------------------------------------------------------------------
-
- #include 'achoice.ch'
- #include 'box.ch'
- #include 'fileio.ch'
- #include 'inkey.ch'
- #include 'setcurs.ch'
-
- //----------------------------------------------------------------------------
-
- #define TRUE .T.
- #define FALSE .F.
-
- #define SUBSET(x, y) (x $ y)
-
- FUNCTION ISCHARACTER(x)
- RETURN ValType(x) == 'C'
- FUNCTION ISNUMERIC(x)
- RETURN ValType(x) == 'N'
- FUNCTION ISLOGICAL(x)
- RETURN ValType(x) == 'L'
- FUNCTION ISBLOCK(x)
- RETURN ValType(x) == 'B'
- FUNCTION ISUNDEFINED(x)
- RETURN 'U' $ ValType(x)
-
- FUNCTION SCREENSAVE(a, b, c, d)
- RETURN Str(a, 2) + Str(b, 2) + Str(c, 2) + Str(d, 2) + SaveScreenOld(a, b, c, d)
- FUNCTION EMPTY_SS(x)
- RETURN Empty(x) .OR. x == ' - - '
-
- #define DISPLAY_MODE 0
- DEFINE POSITION_MODE := 1
- DEFINE ENTRY_MODE := 2
- DEFINE UPDATE_MODE := 3
-
- DEFINE QUIT_MODE := 0
- DEFINE ADD_MODE := 1
- DEFINE CHANGE_MODE := 2
- DEFINE DELETE_MODE := 3
- DEFINE EXIT_MODE := 4
-
-
- //----------------------------------------------------------------------------
- //----------------------------------------------------------------------------
-