EditRecB

Purpose
Used to update the data and key associated with a specified record.

Syntax (Method)
object.EditRecB Key, Data, Index

Parameters
Key (String)   The key to assign to the specified record.
Data (Byte Array)  

The data to assign to the specified record.

Index (Long)  

This is the record number of the record you want to edit.

This parameter is zero-based (the first record is record number zero).

Notes
If the specified record exists, its key and data are updated.

If the specified record does not exist, no records are affected.

If an error occurs, no records are affected.

Error Values
After calling this function, the property ErrorNumber will report one of the following values:

rtCDP_ErrNoError
rtCDP_ErrKeyTooLong
rtCDP_ErrDataTooLong
rtCDP_ErrRecordNotFound

Example
See EditRec.

Version History
1.0 2/1/2001 Tested

See Also
EditB, EditArrayB