home *** CD-ROM | disk | FTP | other *** search
- (* pxengine.doc *)
- (* Copyright (c) 1991 by Borland International, Inc. *)
-
- const
- InternalVersion: Longint = $02000004; (* version number, same *)
- (* as found in .lib files *)
-
- const MaxFlds = 255;
-
- (* Type definitions *)
-
- type
- NameString = string[25];
- NameArray = array[1..MaxFlds] of NameString;
- NamesArrayPtr = ^NameArray;
- TableHandle = Word;
- RecordHandle = Word;
- FieldHandle = Word;
- LockHandle = Integer;
- RecordNumber = Longint;
- TDate = Longint;
- WordArray = array[1..MaxFlds] of Word;
- FieldHandleArray = WordArray;
-
- (* Maximum and default values for dynamic configuration. *)
- (* The default values are used if not overwritten in PXSetDefaults (DOS) *)
-
- const
-
- BLANKDATE: Longint = $80000000;
- BLANKLONG: Longint = $80000000;
- BLANKSHORT = $8000;
- BLANKALPHA = '';
-
- PXDEFAULT: Longint = 0; (* use internal default value *)
-
- MaxTableHandles = 64; (* maximum number of open *)
- (* tables allowed at a time *)
- DefTableHandles = 5; (* default number of open *)
- (* tables allowed at a time *)
- MaxRecordHandles = 128; (* maximum number of record *)
- (* buffers available *)
- DefRecordHandles = 10; (* default number of record *)
- (* buffers available *)
- MaxLockHandles = 128; (* maximum number of lock *)
- (* handles per table *)
- DefLockHandles = 32; (* default number of lock *)
- (* handles per table *)
- MaxFileHandles = 255; (* maximum number of DOS file *)
- (* handles to use *)
- MinFileHandles = 2; (* minimum number of DOS file *)
- (* handles to use *)
- DefFileHandles = 10; (* default number of DOS file *)
- (* handles to use *)
-
- DefSortOrder: Pointer = Ptr($FFFF,$FFFF); (* default sort order (ASCII) *)
-
- (* Swap buffer size *)
- MaxSwapSize = 256; (* maximum buffer size allowed (k) *)
- MinSwapSize = 8; (* minimum buffer size allowed (k) *)
- DefSwapSize = 32; (* default buffer size (k) *)
-
- (* Network codes *)
- (* used in PXNetInit *)
-
- NOTONNET = 1; (* not on a net *)
- NOVELLNET = 2; (* Novell *)
- THREECOMNET = 3; (* 3Com *)
- THREEOPENNET = 4; (* 3Com 3+Open *)
- OTHERNET = 5; (* other: unknown DOS 3.1 compatible *)
- STARLANNET = 7; (* Starlan *)
- BANYANNET = 8; (* Banyan *)
- IBMPCNET = 9; (* IBM PC *)
-
- LOCALSHARE = 32; (* enables sharing on local drives with *)
- (* any net type *)
- (* (i.e. OTHERNET + LOCALSHARE) *)
-
- DefUserName = ''; (* use default username in PXNetInit() *)
-
- (* used in PXKeyAdd *)
-
- PRIMARY = 0; (* primary index (key) *)
- SECONDARY = 1; (* non-maintained secondary index *)
- INCSECONDARY = 2; (* maintained secondary index *)
-
- (* used in PXSrchFld, PXSrchKey *)
-
- SEARCHFIRST = 0; (* search from beginning of table *)
- SEARCHNEXT = 1; (* search from next record in table *)
- CLOSESTRECORD = 2; (* goto 'nearest' record if no match found *)
-
- (* Lock types *)
- (* used in PXNetFileLock, PXNetFileUnlock, PXNetTblLock, PXNetTblUnlock *)
-
- FL = 1; (* full lock, no concurrency *)
- WL = 2; (* write lock *)
- PWL = 3; (* prevent write lock *)
- PFL = 4; (* prevent full lock, full concurrency *)
-
- (* commonly used constants *)
-
- Null: Longint = 0;
-
- (* successful Engine function operation returns *)
-
- PXSUCCESS = 0;
-
- (* errorcodes from Engine functions *)
-
- (* initialization errors *)
-
- PXERR_NOTINITERR = 78; (* Engine not initialized *)
- PXERR_ALREADYINIT = 82; (* Engine already initialized *)
- PXERR_NOTLOGGEDIN = 98; (* Could not login on network *)
- (* (to PARADOX.NET) *)
- PXERR_NONETINIT = 107; (* Engine not initialized *)
- (* with PXNetInit *)
- PXERR_NETMULTIPLE = 15; (* multiple PARADOX.NET files *)
-
- (* hardware related errors *)
-
- PXERR_DRIVENOTREADY = 1; (* Drive not ready *)
- PXERR_DISKWRITEPRO = 124; (* Disk is write protected *)
- PXERR_GENERALFAILURE = 126; (* General hardware error *)
-
- (* directory reg error codes *)
-
- PXERR_DIRNOTFOUND = 2; (* Directory not found *)
- PXERR_DIRBUSY = 10; (* Sharing violation *)
- PXERR_DIRLOCKED = 11; (* Sharing violation *)
- PXERR_DIRNOACCESS = 12; (* No access to directory *)
- PXERR_DIRNOTPRIVATE = 14; (* Single user, but directory is shared *)
-
- (* file oriented errors *)
-
- PXERR_FILEBUSY = 3; (* File is busy *)
- PXERR_FILELOCKED = 4; (* File is locked *)
- PXERR_FILENOTFOUND = 5; (* Could not find file *)
-
- (* table oriented errors *)
-
- PXERR_TABLEBUSY = 118; (* Table is busy *)
- PXERR_TABLELOCKED = 119; (* Table is locked *)
- PXERR_TABLENOTFOUND = 120; (* Table was not found *)
- PXERR_TABLEOPEN = 83; (* Unable to perform operation *)
- (* on open table *)
- PXERR_TABLEINDEXED = 94; (* Table is indexed *)
- PXERR_TABLENOTINDEXED = 95; (* Table is not indexed *)
- PXERR_TABLEEMPTY = 105; (* Operation on empty table *)
- PXERR_TABLEWRITEPRO = 22; (* Table is write protected *)
-
- PXERR_TABLECORRUPTED = 6; (* Table is corrupted *)
- PXERR_TABLEFULL = 128; (* Table is full *)
- PXERR_TABLESQL = 130; (* Table is SQL replica *)
- PXERR_INSUFRIGHTS = 21; (* Insufficient password rights *)
-
- (* index oriented errors *)
-
- PXERR_XCORRUPTED = 7; (* Primary index is corrupted *)
- PXERR_XOUTOFDATE = 8; (* Primary index is out of date *)
- PXERR_XSORTVERSION = 13; (* Sort for index different *)
- (* from table *)
-
- PXERR_SXCORRUPTED = 122; (* Secondary index is corrupted *)
- PXERR_SXOUTOFDATE = 96; (* Secondary index is out of date *)
- PXERR_SXNOTFOUND = 121; (* Secondary index was not found *)
- PXERR_SXOPEN = 123; (* Secondary index is already open *)
- PXERR_SXCANTUPDATE = 136; (* Can't update Heap open on Secondary index *)
-
- PXERR_RECTOOBIG = 125; (* Record too big for index *)
-
- (* record oriented errors *)
-
- PXERR_RECDELETED = 50; (* Another user deleted record *)
- PXERR_RECLOCKED = 9; (* Record is locked *)
- PXERR_RECNOTFOUND = 89; (* Record was not found *)
- PXERR_KEYVIOL = 97; (* Key violation *)
-
- PXERR_ENDOFTABLE = 101; (* End of table *)
- PXERR_STARTOFTABLE = 102; (* Start of table *)
-
- (* resource errors *)
-
- PXERR_OUTOFMEM = 40; (* Not enough memory to *)
- (* complete operation *)
- PXERR_OUTOFDISK = 41; (* Not enough disk space to *)
- (* complete operation *)
- PXERR_OUTOFSTACK = 127; (* Not enough stack space to *)
- (* complete operation *)
- PXERR_OUTOFSWAPBUF = 129; (* Not enough swap buffer space to *)
- (* complete operation *)
-
- PXERR_OUTOFFILEHANDLES = 70; (* No more file handles available *)
- PXERR_OUTOFTABLEHANDLES = 72; (* No more table handles available *)
- PXERR_OUTOFRECHANDLES = 103; (* No more record handles available *)
- PXERR_OUTOFLOCKHANDLES = 111; (* Too many locks on table *)
-
- PXERR_NOMORETMPNAMES = 86; (* No more temporary names *)
- (* available *)
- PXERR_TOOMANYPASSW = 115; (* Too many passwords specified *)
-
- (* invalid parameters to functions *)
-
- PXERR_TYPEMISMATCH = 30; (* Data type mismatch *)
- PXERR_OUTOFRANGE = 31; (* Argument out of range *)
- PXERR_INVPARAMETER = 33; (* Invalid argument *)
- PXERR_INVDATE = 73; (* Invalid date given *)
-
- PXERR_INVFIELDHANDLE = 75; (* Invalid field handle *)
- PXERR_INVRECHANDLE = 104; (* Invalid record handle *)
- PXERR_INVTABLEHANDLE = 76; (* Invalid table handle *)
- PXERR_INVLOCKHANDLE = 110; (* Invalid lock handle *)
-
- PXERR_INVDIRNAME = 114; (* Invalid directory name *)
- PXERR_INVFILENAME = 108; (* Invalid file name *)
- PXERR_INVTABLENAME = 99; (* Invalid table name *)
- PXERR_INVFIELDNAME = 74; (* Invalid field name *)
-
- PXERR_INVLOCKCODE = 106; (* Invalid lock code *)
- PXERR_INVUNLOCK = 109; (* Invalid unlock *)
- PXERR_INVSORTORDER = 112; (* Invalid sort order table *)
- PXERR_INVPASSW = 116; (* Invalid password *)
- PXERR_INVNETTYPE = 113; (* Invalid net type (PXNetInit) *)
- PXERR_STRUCTDIFFER = 81; (* Table structures are different *)
-
- PXERR_INVENGINESTATE = 79; (* Previous fatal error; *)
- (* cannot proceed *)
-
- (*---------------------------------------------------------------------- *)
- (* prototypes for engine functions *)
-
- (* declarations of sort order tables, used in PXSetDefaults *)
- function SortOrderAscii: Pointer; (* ASCII sort order *)
- function SortOrderIntl: Pointer; (* international sort order *)
- function SortOrderNorDan: Pointer; (* Norwegian/Danish sort order *)
- function SortOrderSwedFin: Pointer; (* Swedish/Finnish sort order *)
-
- (* INITIALIZATION AND FINALIZATION FUNCTIONS *)
-
- (* Initializes the Paradox environment for function operations *)
- function PXInit: Integer;
-
- (* Initializes the Paradox environment for network operations *)
- function PXNetInit
- (NetNamePath: String; (* directory containing .NET file *)
- NetType: Integer; (* type of network *)
- UserName: String): Integer; (* user name, as put in .NET file *)
-
- (* closes the Paradox environment *)
- function PXExit: Integer;
-
- (* Sets internal default values *)
- function PXSetDefaults
- (BufSize: Integer; (* internal swap buffer size *)
- (* MinSwapSize..MaxSwapSize (8..256), *)
- (* default DefSwapSize (32) *)
- (* allocated at initialization time *)
- MaxTables: Integer; (* max number of tables open at a time *)
- (* range 1..MaxTableHandles, (1..64) *)
- (* default DefTableHandles (5) *)
- MaxRecBufs: Integer; (* max number of record buffers at one *)
- (* range 1..MaxRecordHandles, (1..128) *)
- (* default DefRecordHandles (10) *)
- MaxLocks: Integer; (* max number of locks per table *)
- (* range 1..MaxLockHandles, (1..128) *)
- (* default DefLockHandles (32) *)
- MaxFiles: Integer; (* max number of file handles to use *)
- (* range MinFileHandles..MaxFileHandles*)
- (* default DefFileHandles (10) *)
- SortOrder: Pointer):Integer; (* address of sort order table defined *)
- (* internally in the Engine: *)
- (* SortOrderAscii/SortOrderIntl/ *)
- (* SortOrderNorDan/SortOrderSwedFin *)
- (* default: SortOrderAscii *)
-
- (* Returns internal default values *)
- function PXGetDefaults
- (var SwapSize: Integer; (* returns internal swap buffer size *)
- var MaxTables: Integer; (* returns max tables at once *)
- var MaxRecBufs: Integer; (* returns max record buffers *)
- var MaxLocks: Integer; (* returns max locks per table *)
- var MaxFiles: Integer; (* returns max file handles to use *)
- var SortOrder: Pointer):Integer; (* returns pointer to default sort table *)
-
- (* Saves/restores user critical error handler *)
- function PXSetHWHandler
- (HwHandler: Boolean): Integer; (* enable(TRUE) / disable (FALSE) *)
-
- (* UTILITY FUNCTIONS *)
-
- function IsBlankAlpha(s: String): Boolean;
- function IsBlankDate(i: TDate): Boolean;
- function IsBlankShort(i: Integer): Boolean;
- function IsBlankDouble(i: Double): Boolean;
- procedure BlankDouble(var i: Double);
-
- (* TABLE FUNCTIONS *)
-
- (* Opens a table *)
- function PXTblOpen
- (TblName: String; (* name of table to open *)
- var TblHandle: TableHandle; (* returns handle for opened table *)
- IndexID: Integer; (* =0 mastertable else indexnumber *)
- SaveEveryChange: Boolean):Integer; (* save each record as it is changed? *)
-
- (* Closes a table *)
- function PXTblClose(TblHandle:TableHandle):Integer;
-
- (* Creates an empty table *)
- function PXTblCreate
- (TblName: String; (* name of table to create *)
- NFields: Integer; (* number of fields in table *)
- Fields, (* field names *)
- Types: NamesArrayPtr): Integer; (* field types (N, S..) *)
-
-
- (* Removes all records from a table *)
- function PXTblEmpty(TblName: String): Integer;
-
- (* Delete a table and its family *)
- function PXTblDelete(TblName: String): Integer;
-
- (* Copies one table family to another *)
- function PXTblCopy
- ( FromName: String; (* source table of copy *)
- ToName: String): Integer; (* destination table of copy *)
-
- (* Changes the base name of a table family *)
- function PXTblRename
- (FromName: String; (* source table of copy *)
- ToName: String): Integer; (* destination table of copy *)
-
- (* Adds records from one table to another table *)
- function PXTblAdd
- (SrcName: String; (* source table of add *)
- DestName: String): Integer; (* destination table of add *)
-
- (* RECORD FUNCTIONS *)
-
- (* Appends a record to a table *)
- function PXRecAppend
- (TblHandle: TableHandle; (* table to append record to *)
- RecHandle: RecordHandle):Integer; (* record to append *)
-
- (* Inserts a record into a table *)
- function PXRecInsert
- (TblHandle: TableHandle; (* table to insert record into *)
- RecHandle: RecordHandle):Integer; (* record to insert *)
-
- (* Updates the current record in a table *)
- function PXRecUpdate
- (TblHandle: TableHandle; (* table to update record into *)
- RecHandle: RecordHandle):Integer; (* changed record to post *)
-
- (* Deletes the current record from a table *)
- function PXRecDelete(TblHandle: TableHandle): Integer;
-
- (* Creates a record buffer *)
- function PXRecBufOpen
- (TblHandle: TableHandle; (* table to create buffer for *)
- var RecHandle: RecordHandle): Integer; (* returns handle to record buffer *)
-
- (* Removes a record transfer buffer *)
- function PXRecBufClose(RecHandle: RecordHandle): Integer;
-
- (* Clears a record transfer buffer *)
- function PXRecBufEmpty(RecHandle: RecordHandle): Integer;
-
- (* Copies source record buffer to destination record buffer *)
- function PXRecBufCopy
- (FromHandle: RecordHandle; (* record buffer to copy from *)
- ToHandle: RecordHandle): Integer; (* record buffer to copy to *)
-
- (* Transfers the current record to the record transfer buffer *)
- function PXRecGet
- (TblHandle: TableHandle; (* table to get record from *)
- RecHandle: RecordHandle): Integer; (* record buffer to put record in *)
-
- (* FIELD FUNCTIONS *)
-
- (* Assigns an integer value to a short field *)
- function PXPutShort
- (RecHandle: RecordHandle; (* record buffer to put value in *)
- FldHandle: FieldHandle; (* field in record *)
- Value: Integer): Integer; (* value to put *)
-
- (* Assigns a Double value to a field *)
- function PXPutDoub
- (RecHandle: RecordHandle; (* record buffer to put value in *)
- FldHandle: FieldHandle; (* field in record *)
- Value: Double): Integer; (* value to put *)
-
- (* Assigns a long integer value to a field *)
- function PXPutLong
- (RecHandle: RecordHandle; (* record buffer to put value in *)
- FldHandle: FieldHandle; (* field in record *)
- Value: Longint): Integer; (* value to put *)
-
- (* Assigns a string value to a field *)
- function PXPutAlpha
- (RecHandle: RecordHandle; (* record buffer to put value in *)
- FldHandle: FieldHandle; (* field in record *)
- Value: String): Integer; (* value to put *)
-
- (* Assigns a date value to a field *)
- function PXPutDate
- (RecHandle: RecordHandle; (* record buffer to put value in *)
- FldHandle: FieldHandle; (* field in record *)
- value: TDate): Integer; (* value to put *)
-
- (* Assigns a blank value to a field *)
- function PXPutBlank
- (RecHandle: RecordHandle; (* record buffer to put blank in *)
- FldHandle: FieldHandle): Integer; (* field in record *)
-
- (* Retrieves a short integer from a field *)
- function PXGetShort
- (RecHandle: RecordHandle; (* record buffer to get value from *)
- FldHandle: FieldHandle; (* field to get value from *)
- var SValue: Integer): Integer; (* returns value *)
-
- (* Retrieves a Double value from a field *)
- function PXGetDoub
- (RecHandle: RecordHandle; (* record buffer to get value from *)
- FldHandle: FieldHandle; (* field to get value from *)
- var DValue: Double): Integer; (* returns value *)
-
- (* Retrieves a long integer value from a field *)
- function PXGetLong
- (RecHandle: RecordHandle; (* record buffer to get value from *)
- FldHandle: FieldHandle; (* field to get value from *)
- var LValue: Longint): Integer; (* returns value *)
-
- (* Retrieves a string from an alphanumeric field *)
- function PXGetAlpha
- (RecHandle: RecordHandle; (* record buffer to get value from *)
- FldHandle: FieldHandle; (* field to get value from *)
- var Dest: String): Integer; (* return buffer *)
-
- (* Retrieves a date value from a date field *)
- function PXGetDate
- (RecHandle: RecordHandle; (* record buffer to get value from *)
- FldHandle: FieldHandle; (* field to get value from *)
- var Value: TDate): Integer; (* returns value *)
-
- (* tests if a field is blank *)
- function PXFldBlank
- (RecHandle: RecordHandle; (* record to test value in *)
- FldHandle: FieldHandle; (* field to test *)
- var Blank: Boolean): Integer; (* returns TRUE/FALSE *)
-
- (* Moves to a specified record *)
- function PXRecGoto
- (TblHandle: TableHandle; (* tblHandle of table to move in *)
- RecNum: RecordNumber): Integer; (* record number to move to *)
-
- (* Moves to the first record of a table *)
- function PXRecFirst
- (TblHandle: TableHandle): Integer; (* table to move in *)
-
- (* Moves to last record of a table *)
- function PXRecLast
- (TblHandle: TableHandle): Integer; (* table to move in *)
-
- (* Moves to the next record of a table *)
- function PXRecNext
- (TblHandle: TableHandle): Integer; (* table to move in *)
-
- (* Moves to the previous record in a table *)
- function PXRecPrev
- (TblHandle: TableHandle): Integer; (* table to move in *)
-
- (* INDEX FUNCTIONS *)
-
- (* Creates a primary or secondary index on a table *)
- function PXKeyAdd
- (TblName: String; (* name of table to add index for *)
- NFlds: Integer; (* number of fields in index *)
- var FldHandles: FieldHandleArray; (* array of field numbers in index *)
- Mode: Integer): Integer; (* type of index to create *)
- (* PRIMARY/SECONDARY/INCSECONDARY *)
-
- (* Deletes primary or secondary index *)
- function PXKeyDrop
- (TblName: String; (* name of table to delete index for *)
- IndexID: Integer): Integer; (* 0 if primary key, else field number *)
- (* of secondary index *)
-
- (* DATE FUNCTIONS *)
-
- (* Convers internal date to calendar date *)
- function PXDateDecode
- (Date: TDate; (* long value to decode *)
- var Mo: Integer; (* decoded month value *)
- var Da: Integer; (* decoded date value *)
- var Yr: Integer): Integer; (* decoded year value *)
-
- (* Converts calendar date to internal format *)
- function PXDateEncode
- (Mo: Integer; (* month value to encode *)
- Da: Integer; (* date value to encode *)
- Yr: Integer; (* year value to encode *)
- var Date: TDate): Integer; (* encoded date value *)
-
- (* SEARCH FUNCTIONS *)
-
- (* Searches a table for a (sub) key match *)
- function PXSrchKey
- (TblHandle: TableHandle; (* table to search in *)
- RecHandle: RecordHandle; (* record buffer with key to find *)
- NFlds: Integer; (* number of fields in key *)
- Mode: Integer): Integer; (* searching from first/next record *)
-
- (* Searches a table on a specified field *)
- function PXSrchFld
- (TblHandle: TableHandle; (* table to search in *)
- RecHandle: RecordHandle; (* record buffer with field to find *)
- FldHandle: FieldHandle; (* field number to search on *)
- Mode: Integer): Integer; (* searching from first/next record *)
-
- (* PASSWORD FUNCTIONS *)
-
- (* Tests if the table is encrypted *)
- function PXTblProtected
- (TblName: String; (* name of table to check *)
- var Protected: Boolean): Integer; (* returns TRUE/FALSE *)
-
- (* enters a password *)
- function PXPswAdd
- (Password: String): Integer; (* password to enter into system *)
-
- (* Removes a password *)
- function PXPswDel
- (Password: String): Integer; (* password to remove from system *)
-
- (* Encrypts a table *)
- function PXTblEncrypt
- (TblName: String; (* name of table to encrypt *)
- Password: String): Integer; (* password for encrypted table *)
-
- (* Decrypts a table *)
- function PXTblDecrypt
- (TblName: String): Integer; (* name of table to decrypt *)
-
- (* INFORMATIONAL FUNCTIONS *)
-
- (* Tests if a named table exists *)
- function PXTblExist
- (TblName: String; (* name of table to check *)
- var Exist: Boolean): Integer; (* returns TRUE/FALSE *)
-
- (* Finds table name corresponding to a table handle *)
- function PXTblName
- (TblHandle: TableHandle; (* table to return name of *)
- var TblName: String): Integer; (* name of table, without extension *)
-
- (* Finds the current record number of a table *)
- function PXRecNum
- (TblHandle: TableHandle; (* table to get record number from *)
- var Recnum: RecordNumber): Integer;(* returns record number *)
-
- (* Finds the number of records in a table *)
- function PXTblNRecs
- (TblHandle: TableHandle; (* table to get number of records from *)
- var NRecs: RecordNumber): Integer; (* returns number of records *)
-
- (* Finds the number of fields in a table *)
- function PXRecNFlds
- (TblHandle: TableHandle; (* table to get number of fields from *)
- var NFlds: Integer): Integer; (* returns number of fields in record *)
-
- (* Finds the number of key fields in a table *)
- function PXKeyNFlds
- (TblHandle: TableHandle; (* table to get key size for *)
- var NKeyFlds: Integer): Integer; (* returns number of fields in key *)
-
- (* Gets the field handle for a given field name *)
- function PXFldHandle
- (TblHandle: TableHandle; (* table to get field number from *)
- FieldName: String; (* name of field in table *)
- var FldHandle: FieldHandle): Integer; (* returns field number *)
-
- (* Gets the field type for a given field handle *)
- function PXFldType
- (TblHandle: TableHandle; (* table to get field type from *)
- FldHandle: FieldHandle; (* field number of field in table *)
- var FldType: NameString): Integer; (* field type of field as string *)
-
- (* Gets the name of a field for a given field handle *)
- function PXFldName
- (TblHandle: TableHandle; (* table to get field name from *)
- FldHandle: FieldHandle; (* field number of field in table *)
- var FldName: NameString): Integer; (* returns name of field *)
-
- (* MISCELLANEOUS FUNCTIONS *)
- (* Sets maximum size for any table *)
- function PXTblMaxSize
- (Maxsize: Integer): Integer; (* max size of table 64/128/256 Mbytes*)
-
- (* Flushes all buffers and writes them to disk *)
- function PXSave: Integer;
-
- (* CONCURRENCY FUNCTIONS *)
- (* can be used only if PXNetInit() was successful *)
-
- (* Obtains net name of user *)
- function PXNetUserName
- (var UserName: String): Integer; (* returns user name *)
-
- (* Locks a file *)
- function PXNetFileLock
- (FileName: String; (* name of file to lock *)
- LockType: Integer): Integer; (* type of lock (FL, WL, PFL, PWL) *)
-
- (* Unlocks a file *)
- function PXNetFileUnlock
- (FileName: String; (* name of file to unlock *)
- LockType: Integer): Integer; (* type of lock (FL, WL, PFL, PWL) *)
-
- (* locks a table *)
- function PXNetTblLock
- (TblHandle: TableHandle; (* table to lock *)
- LockType: Integer): Integer; (* type of lock (FL, WL, PFL, PWL) *)
-
- (* unlocks a table *)
- function PXNetTblUnlock
- (TblHandle: TableHandle; (* table to unlock *)
- LockType: Integer): Integer; (* type of lock (FL, WL, PFL, PWL) *)
-
- (* Locks the current record *)
- function PXNetRecLock
- (TblHandle: TableHandle; (* table to lock record in *)
- var LckHandle: LockHandle): Integer; (* returns handle to lock *)
-
- (* Unlocks a record *)
- function PXNetRecUnlock
- (TblHandle: TableHandle; (* table to unlock record in *)
- LckHandle: LockHandle): Integer; (* lock handle of record to unlock *)
-
- (* Determines whether a record has been locked *)
- function PXNetRecLocked
- (TblHandle: TableHandle; (* table to check current record in *)
- var Locked: Boolean): Integer; (* returns TRUE/FALSE *)
-
- (* Returns to a previously locked record *)
- function PXNetRecGotoLock
- (TblHandle: TableHandle; (* table to move in *)
- LckHandle: LockHandle): Integer; (* lock handle to record *)
-
- (* Tests if any of a table's internal buffers are out of synch due to *)
- (* concurrent use by another user on the network *)
- function PXNetTblChanged
- (TblHandle: TableHandle; (* table to test *)
- var Changed: Boolean): Integer; (* returns TRUE/FALSE *)
-
- (* Resynchronizes a table *)
- function PXNetTblRefresh
- (TblHandle: TableHandle): Integer; (* tabel to refresh *)
-
- (* reports error message *)
- function PXErrMsg(ErrCode:Integer): String;
-
- (* Reports name of user causing locking error *)
- function PXNetErrUser
- (var UserName: String): Integer; (* returns user name *)
-
- (* Specifies the name and path of the Engine overlay file *)
- (* -- if used, this must be the very first Engine function you call *)
- function PXLoadOverlay
- (OverlayName: String): Integer; (* full name e.g. 'c:\engine\pxengine.ovl' *)
-
-