AccSys for Paradox Functions
Discontinued
AccSys Functions for Tables:
- Pempty - Empties a table and all indexes
- Perrmsg - Obtains an error message string
- Popen - Opens a table and its index
- PtoPD - Obtains access forPD functions
- PtoPK - Obtains access forPK functions
- PtoPS - Obtains access forPS functions
- Pencrypt/Pdecrypt - Encrypts/decrypts a table
- Ppasswd - Establishes an active password
- Pdelete - Deletes a table and its index files
- Pclose - Closes a table and indexes by HTABLEreference
- Pchkcrypt - Checks if a table is password-protected
AccSys Functions for Non-Keyed Tables:
- PDcreat - Creates an empty table file from user
application
- PDcopy - Creates an empty table file from an existing
table file (copy structure)
- PDbuffs - Calculates memory size to be used for
table file
- PDopen - Opens non-keyed table file
- PDclose - Closes table file
- PDgetrec - Reads a table record by record number
- PDseek - Sets the current record in a non-keyed
table
- PDcurrec - Reads the current record from a non-keyed
table
- PDcurrno - Reads the current record number in a
non-keyed table
- PDnxtrec - Reads the next record from a non-keyed
table
- PDprvrec - Reads the previous record from a non-keyed
table
- PDputrec - Insets a table record by record number
- PDapprec - Appends a table record
- PDupdrec - Updates a table record by record number
- PDdelrec - Deletes a table record by record number
- PDflush - Flushes the current record buffers
- PDsize - Gets the number of records in table
- PDreclen - Gets the record number
- PDfields - Gets the number of fields in the record
- PDfldnm - Gets the field information by name (name,
length, type, displacement)
- PDfldno - Gets the field information by field number
(name. length, type, displacement)
- PDsort - Sorts the table file
- PDapart - Converts a keyed table to a non-keyed
table
- PDmode - Checks the mode of a table; i.e., keyed/non-keyed,
write-protected, passwork-protected
- PDchmod - Changes the table mode
AccSys Functions for Keyed Tables:
- PKcreat - Creates an empty table and empty primary
index
- PKcopy - Creates an empty table and empty primary
index from an existing keyed table.
- PPbuffs - Calculates memory size used for primary
index
- PKopen - Opens primary index and its table
- PKclose - Closes primary index and its table
- PKputrec - Puts the record into the table and updates
the primary index
- PKgetrec - Reads a record by primary key
- PKdelrec - Deletes the record, removes the key from
the primary index
- PKupdrec - Updates the record by primary key
- PKrewind - Rewinds primary index to Beginning-Of-File
(BOF)
- PKforwrd - Positions primary index to End-Of-File
(EOF)
- PKnxtrec - Gets record by next primary key
- PKprvrec - Gets record by previous primary key
- PKcurrec - Gets record using the current primary
key
- PKcurkey - Gets the current primary key
- PKflush - Flushes the primary index to disk
- PKkeylen - Gets the primary key length
- PKkyflds - Gets the number of fields that make up
primary index
- PKindex - Generates a new primary index from an
existing table
- PKtoPD - Obtains PD pointer for use with the PD
functions
AccSys Functions for Secondary Index Files:
- PScreat - Creates an empty secondary index
- PXbuffs - Calculates memory size used for X index
file
- PYbuffs - Calculates emeory size used for Y index
file
- PSkopen - Opens incremental secondary index files
- PStopen - Opens non-incremental secondary index
files
- PSclose - Closes secondary index
- PSnincix - Formats the key for secondary index
for non-incremental index
- PSincrix - Formats the key for secondary key for
incremental secondary index
- PSputkey - Puts secondary key into secondary index
- PSsetkey - Sets the current secondary key
- PSnxtkey - Gets the next secondary key
- PSprvkey - Gets the previous secondary key
- PScurkey - Gets the current key
- PSrewind - Rewinds secondary index to BOF
- PSforwrd - Positions the secondary index to EOF
- PSgetrec - Reads a record using the secondary key
- PSnxtrec - Gets the next record by secondary key
- PSprvrec - Gets the previous record by secondary
key
- PScurrec - Gets the record by current secondary
key
- PSkeylen - Gets the secondary key length
- PSkeytyp - Gets the secondary key type
- PSflush - Flushes secondary index (useful only for
incremental secondary index files)
- PStype - Reports the secondary index type: incremental
or non-incremental
- PSindex - Generates an entire secondary index from
the table
- PStindex - Generates complete non-incremental secondary
index from the table
- PSkindex - Generates complete incremental secondary
index from the table
- PSukeylen - Gets the 'user' secondary key length
- PSfirst/PSnext - Obtains the first and the following
secondary indexes
- PSkeycount - Tells the number of keys in secondary
index
- PScreatC - Creates composite or case-insensitive
secondary index
- PSindexC - Generates composite or case-insensitive
secondary index from table
- PSkindexC - Generates composite or case-insensitive
incremental secondary index from table
- PStindexC - Generates composite or case-insensitive
secondary index from table
- PSnincixC/PSincrixC - Format keys for composite
or case-insensitive secondary index
- PStypeC - Returns information information about
a composite secondary index
Note: Secondary index without keyed tables are used
for read-only purposes.
Utility Functions:
- PUdblton - Converts a double numeric field
- PUntodbl - Converts a numeric field to double
- PUitosn - Converts integer to short numeric field
- PUsntoi - Converts a short numeric field to integer
- PUfmdate - Formats a date field to month, day and
year
- PUmmddyy - Converts a date field to month, day
and year
- PUalphan - Formats a string to alphanumeric field
format with padded zeros.
- PUatostr - Converts a Paradox alphanumeric field
to a C string format
- PUleap - Tests if a year is a leap year
- PUexpnm - Expands a base name to a specific file
name
- PUsetso - Sets the character set and its sort order
- PUgetso - Sets the sort order to the Paradox sort
order file
- PUfindso - Finds sort order specified in the table
and its index
- PUtmpdir - Sets a directory for temporary files
15. PUntod - Converts numeric field to 'double' of C
BLOB Functions:
- PBBlobClear - Clears a BLOB in a record buffer
- PBBlobClone - Clones (creates) private BLOBS from
public BLOBS
- PBBlobClose - Closes BLOB that was opened for reading
or writing
- PBBlobDrop - Drops a private BLOB
- PBBlobGet - Reads data from BLOB opened for reading
or writing
- PBBlobOpenRead - Opens public BLOB for reading
- PBBlobOpenWrite - Opens public BLOB for reading
and writing
- PBBlobPut - Writes data to BLOB opened for writing
- PBBlobQuickGet - Reads BLOB leader data
- PBBlobGetSize - Gets size of BLOB opened for reading
or writing
Network Capabilities:
Network capabilities automatically handle network control
and file locking. The following functions could be listed in the
above sections since the multi-user functions also follow the same
naming conventions (for example, PKgrbrec starts with PK and it
handles a keyed-table).
These functions are specifically designed to handle
network specific tasks.
- Plogin - Logs into a multi-user database
- Pbecome - Becomes another user already logged into
a multi-user database
- Plogout - Logs out from a multi-user (network)
database
- Pwholist - Lists users logged into the multi-user
(network) database
- Pwhotbl - Lists users who locked a table along
with the lock types
- Pgetlong - Obtains a record number in long integer
from a 4-bytes array set by Pwhotbl
- PDtbllck - Locks or unlocks a non-keyed table with
one of the following: Full Lock, Prevent Full Lock, Write Lock,
or Prevent Write Lock
- PKtbllck - Locks or unlocks a non-keyed table with
one of the following: Full Lock, Prevent Full Lock, Write Lock,
or Prevent Write Lock
- PDreclck - Locks, unlocks and tests a record in
a non-keyed table
- PDcurlck - Locks, unlocks and tests a current record
in a non-keyed table
- PKreclck - Locks, unlocks and tests a record in
a keyed table
- PDlkstat - Tells locks placed by the current program
in a non-keyed table
- PKlkstat - Tells locks placed by the current program
in a keyed table
- PDelock - Provides an exclusive lock in a non-keyed
table
- PKelock - Provides an exclusive lock in a keyed
table
- PDgrbrec - Grabs and reads a record from a non-keyed
table even if the table is full locked
- PKgrbrec - Grabs and reads a record from a keyed
table even if the table is full locked
- PDlckget - Locks and reads a record from a non-keyed
table
- PKlckget - Locks and reads a record from a keyed
table
- PDchange - Checks if a non-keyed table has been
changed by another user
- PKchange - Checks of a keyed table has been changed
by another user
- Pflock - Locks or unlocks a file with one of the
following: Full Lock, Prevent Full Lock, Write Lock, or Prevent
Write Lock
|