home *** CD-ROM | disk | FTP | other *** search
-
- Global Const MBOK = 1
- Global Const TRUE = 1
- Global Const FALSE = 0
- Global Const DBPATH = "g:\vb\"
- Global Const NOT_PROGRAMMED = 999
-
- Global rc As Integer
- Global aValue As String * 255
- Global aSize As Integer
- Global sValue As Integer
- Global lValue As Long
- Global dValue As Double
- Global nFlds As Integer
- Global loadFlag As Integer
- Global ttrakTbl As Integer
- Global ttrakRec As Integer
- Global ttrakFlf As Integer
- Global projFlag As Integer
- Global printFlag As Integer
- Global projectName As String
- Global savproj As String * 20
- Global savtotal As String * 5
- Global pageno As Integer
- Global linecnt As Integer
- Global key1(25, 1 To 2) As String * 20
- Global key2(25, 1 To 2) As Integer
-
- Global mm As Integer
- Global dd As Integer
- Global yy As Integer
- Global tindex As Integer '0=master,or nbr of index
- Global returnFld As String
-
- Type savDate
- mm As Integer
- dd As Integer
- yy As Integer
- End Type
-
- ' pxengine.gbl
- ' written by J.W.Jaster 1991
-
- Global Const PX_LOADED = 1
- Global Const PXDEFAULT = 0 ' use internal default value
- Global Const MAXTABLEHANDLES = 64 ' maximum number of open
- ' tables allowed at a time
- Global Const DEFTABLEHANDLES = 5 ' default number of open
- ' tables allowed at a time
- Global Const MAXRECORDHANDLES = 128 ' maximum number of record
- ' buffers available
- Global Const DEFRECORDHANDLES = 10 ' default number of record
- ' buffers available
- Global Const MAXLOCKHANDLES = 128 ' maximum number of lock
- ' handles per table
- Global Const DEFLOCKHANDLES = 32 ' default number of lock
- ' handles per table
- Global Const MAXFILEHANDLES = 255 ' maximum number of DOS file
- ' handles to use
- Global Const MINFILEHANDLES = 2 ' minimum number of DOS file
- ' handles to use
- Global Const DEFFILEHANDLES = 10 ' default number of DOS file
- ' handles to use
- ' Swap buffer size
- Global Const MAXSWAPSIZE = 256 ' maximum buffer size allowed (k)
- Global Const MINSWAPSIZE = 8 ' minimum buffer size allowed (k)
- Global Const DEFSWAPSIZE = 32 ' default buffer size (k)
-
- ' Network codes
- ' used in PXNetInit
- Global Const NOTONNET = 1 ' not on a net
- Global Const NOVELLNET = 2 ' Novell
- Global Const THREECOMNET = 3 ' 3Com
- Global Const THREEOPENNET = 4 ' 3Com 3+Open
- Global Const OTHERNET = 5 ' other: unknown DOS 3.1 compatible
- Global Const STARLANNET = 7 ' Starlan
- Global Const BANYANNET = 8 ' Banyan
- Global Const IBMPCNET = 9 ' IBM PC
- Global Const LOCALSHARE = 32 ' enables sharing on local drives with
- ' any net type
- ' (i.e. OTHERNET | LOCALSHARE)
- Global Const DEFUSERNAME = "" ' use default username in PXNetInit()
- ' cannot proceed
- ' values for ShareMode argument to PXWinInit
- Global Const PXSINGLECLIENT = 0 ' allow no other client access to Engine DLL
- Global Const PXEXCLUSIVE = 1 ' open all tables with FULL LOCK
- Global Const PXSHARED = 2 ' open all tables with PREVENT FULL LOCK
- ' declarations of sort order tables, used in PXSetDefaults
- Global Const SortOrderAscii = "a" ' ASCII sort order
- Global Const SortOrderIntl = "i" ' international sort order
- Global Const SortOrderNorDan = "n" ' Norwegian/Danish sort order
- Global Const SortOrderSwedFin = "s" ' Swedish/Finnish sort order
- ' used in PXKeyAdd
- Global Const PRIMARY = 0 ' primary index (key)
- Global Const SECONDARY = 1 ' not maintained secondary index
- Global Const INCSECONDARY = 2 ' maintained secondary index
- ' used in PXSrchFld, PXSrchKey
- Global Const SEARCHFIRST = 0 ' search from beginning of table
- Global Const SEARCHNEXT = 1 ' search from next record in table
- Global Const CLOSESTRECORD = 2 ' (modifier) goto 'nearest' record if
- ' no match found (ordered fields only)
- ' Lock types
- ' used in PXNetFileLock, PXNetFileUnlock, PXNetTblLock, PXNetTblUnlock
- Global Const FL = 1 ' full lock, no concurrency
- Global Const WL = 2 ' write lock
- Global Const PWL = 3 ' prevent write lock
- Global Const PFL = 4 ' prevent full lock, full concurrency
- ' macros for checking blank values
- Global Const BLANKDATE = &H80000000
- Global Const BLANKLONG = &H80000000
- Global Const BLANKSHORT = &H8000
- ' successful Engine function operation returns
- Global Const PXSUCCESS = 0
- ' errorcodes from Engine functions
- ' initialization errors
- Global Const PXERR_NOTINITERR = 78 ' Engine not initialized
- Global Const PXERR_ALREADYINIT = 82 ' Engine already initialized
- Global Const PXERR_NOTLOGGEDIN = 98 ' Could not login on network
- ' (to PARADOX.NET)
- Global Const PXERR_NONETINIT = 107 ' Engine not initialized
- ' with PXNetInit
- Global Const PXERR_NETMULTIPLE = 15 ' multiple PARADOX.NET files
-
- Global Const PXERR_CANTSHAREPDOXNET = 134 ' can't lock PARADOX.NET -- is
- ' SHARE.EXE loaded?
- Global Const PXERR_WINDOWSREALMODE = 135 ' can't run Engine in Windows
- ' real mode
- ' hardware related errors
- Global Const PXERR_DRIVENOTREADY = 1 ' Drive not ready
- Global Const PXERR_DISKWRITEPRO = 124 ' Disk is write protected
- Global Const PXERR_GENERALFAILURE = 126 ' General hardware error
- ' directory reg error codes
- Global Const PXERR_DIRNOTFOUND = 2 ' Directory not found
- Global Const PXERR_DIRBUSY = 10 ' Sharing violation
- Global Const PXERR_DIRLOCKED = 11 ' Sharing violation
- Global Const PXERR_DIRNOACCESS = 12 ' No access to directory
- Global Const PXERR_DIRNOTPRIVATE = 14 ' Single user, but directory is
- ' shared
- ' file oriented errors
- Global Const PXERR_FILEBUSY = 3 ' File is busy
- Global Const PXERR_FILELOCKED = 4 ' File is locked
- Global Const PXERR_FILENOTFOUND = 5 ' Could not find file
- ' table oriented errors
- Global Const PXERR_TABLEBUSY = 118 ' Table is busy
- Global Const PXERR_TABLELOCKED = 119 ' Table is locked
- Global Const PXERR_TABLENOTFOUND = 120 ' Table was not found
- Global Const PXERR_TABLEOPEN = 83 ' Unable to perform operation
- ' on open table
- Global Const PXERR_TABLEINDEXED = 94 ' Table is indexed
- Global Const PXERR_TABLENOTINDEXED = 95 ' Table is not indexed
- Global Const PXERR_TABLEEMPTY = 105 ' Operation on empty table
- Global Const PXERR_TABLEWRITEPRO = 22 ' Table is write protected
- Global Const PXERR_TABLECORRUPTED = 6 ' Table is corrupted
- Global Const PXERR_TABLEFULL = 128 ' Table is full
- Global Const PXERR_TABLESQL = 130 ' Table is SQL replica
- Global Const PXERR_INSUFRIGHTS = 21 ' Insufficient password rights
- ' index oriented errors
- Global Const PXERR_XCORRUPTED = 7 ' Primary index is corrupted
- Global Const PXERR_XOUTOFDATE = 8 ' Primary index is out of date
- Global Const PXERR_XSORTVERSION = 13 ' Sort for index different
- ' from table
- Global Const PXERR_SXCORRUPTED = 122 ' Secondary index is corrupted
- Global Const PXERR_SXOUTOFDATE = 96 ' Secondary index is out of date
- Global Const PXERR_SXNOTFOUND = 121 ' Secondary index was not found
- Global Const PXERR_SXOPEN = 123 ' Secondary index is already open
- Global Const PXERR_SXCANTUPDATE = 136 ' Can't update table open on non- 'maintained secondary
- Global Const PXERR_RECTOOBIG = 125 ' Record too big for index
- ' record oriented errors
- Global Const PXERR_RECDELETED = 50 ' Another user deleted record
- Global Const PXERR_RECLOCKED = 9 ' Record is locked
- Global Const PXERR_RECNOTFOUND = 89 ' Record was not found
- Global Const PXERR_KEYVIOL = 97 ' Key violation
- Global Const PXERR_ENDOFTABLE = 101 ' End of table
- Global Const PXERR_STARTOFTABLE = 102 ' Start of table
- ' errors specific for Windows Engine DLL
- Global Const PXERR_TOOMANYCLIENTS = 131
- Global Const PXERR_EXCEEDSCONFIGLIMITS = 132
- Global Const PXERR_CANTREMAPFILEHANDLE = 133
- ' resource errors
- Global Const PXERR_OUTOFMEM = 40 ' Not enough memory to
- ' complete operation
- Global Const PXERR_OUTOFDISK = 41 ' Not enough disk space to
- ' complete operation
- Global Const PXERR_OUTOFSTACK = 127 ' Not enough stack space to
- ' complete operation
- Global Const PXERR_OUTOFSWAPBUF = 129 ' Not enough swap buffer space to
- ' complete operation
- Global Const PXERR_OUTOFFILEHANDLES = 70 ' No more file handles available
- Global Const PXERR_OUTOFTABLEHANDLES = 72 ' No more table handles 'available
- Global Const PXERR_OUTOFRECHANDLES = 103 ' No more record handles 'available
- Global Const PXERR_OUTOFLOCKHANDLES = 111 ' Too many locks on table
- Global Const PXERR_NOMORETMPNAMES = 86 ' No more temporary names
- ' available
- Global Const PXERR_TOOMANYPASSW = 115 ' Too many passwords specified
- ' invalid parameters to functions
- Global Const PXERR_TYPEMISMATCH = 30 ' Data type mismatch
- Global Const PXERR_OUTOFRANGE = 31 ' Argument out of range
- Global Const PXERR_INVPARAMETER = 33 ' Invalid argument
- Global Const PXERR_INVDATE = 73 ' Invalid date given
- Global Const PXERR_INVFIELDHANDLE = 75 ' Invalid field handle
- Global Const PXERR_INVRECHANDLE = 104 ' Invalid record handle
- Global Const PXERR_INVTABLEHANDLE = 76 ' Invalid table handle
- Global Const PXERR_INVLOCKHANDLE = 110 ' Invalid lock handle
- Global Const PXERR_INVDIRNAME = 114 ' Invalid directory name
- Global Const PXERR_INVFILENAME = 108 ' Invalid file name
- Global Const PXERR_INVTABLENAME = 99 ' Invalid table name
- Global Const PXERR_INVFIELDNAME = 74 ' Invalid field name
- Global Const PXERR_INVLOCKCODE = 106 ' Invalid lock code
- Global Const PXERR_INVUNLOCK = 109 ' Invalid unlock
- Global Const PXERR_INVSORTORDER = 112 ' Invalid sort order table
- Global Const PXERR_INVPASSW = 116 ' Invalid password
- Global Const PXERR_INVNETTYPE = 113 ' Invalid net type (PXNetInit)
- Global Const PXERR_BUFTOOSMALL = 117 ' Buffer too small for result
- Global Const PXERR_STRUCTDIFFER = 81 ' Table structures are different
- Global Const PXERR_INVENGINESTATE = 79 ' Previous fatal error;
-
-