|
AddCustomer()
Adds a customer record to the customer
database.
Syntax
AddCustomer(cAccount)
--> lSuccess
Arguments
cAccount --> This must be a non-blank account
code up to 8 characters long. The account must not already exist in
the customer file.
Returns
TRUE if the record was successfully added to the
customer file, otherwise FALSE is returned.
Description
This function adds a customer record to the
CAPITAL customer database. The function assumes that the CUSTREC
database is already open and available. If it is not, use the
OpenTable()
function to open it first. If the operation is successful, the
record is locked, ready for writing further information to it. You
do not need to use the
LockRecord()
function. However, if you want other users to be able to access the
record right away, you should issue:
Custrec->(UnlockRecord())
after you have finished updating it.
____________________________
Related Topics
Business
Function List
|