xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DbRecordInfo()

Queries and/or changes information about a record of an open database file.

Syntax

DbRecordInfo( <nDefine>, [<nRecord>], [<xNewSetting>] ) --> xOldSetting

Arguments

<nDefine>
This is a numeric parameter for which #define constants exist in the file DbInfo.ch. They identify the individual data that can be queried for a single record.
<nRecord>
The parameter identifies the record in a database to query data for. It defaults to the return value of Recno(), the current record.
<xNewSetting>
This parameter is reserved for RDDs that allow the record information to be changed.

Return

DbRecordInfo() returns the queried record information as supplied by the replaceable database driver (RDD).

Description

DbRecordInfo() queries detailed record information from the replaceable database driver (RDD). Depending on database and RDD used, different information may be available. The type of information to retrieve is specified with #define constants available in the DBINFO.CH header file.

Constants for DbRecordInfo()
ConstantReturn value
DBRI_DELETEDThe Deleted() flag of a record as a logical value
DBRI_ENCRYPTEDThe encrypted flag of a record as a logical value
DBRI_LOCKEDThe write lock status of a record as a logical value
DBRI_RAWDATAThe raw data of a record as a character string
DBRI_RAWMEMOSThe raw memo field data of a record as a character string
DBRI_RAWRECORDThe raw data of a record except memo fields as a character string
DBRI_RECNOThe numeric relative record position, see OrdKeyNo()
DBRI_RECSIZEThe numeric size of a record, see RecSize()
DBRI_UPDATEDThe updated flag of a record as a logical value

By default, DbRecordInfo() operates in the current work area. Use an aliased expression to query field information in different work areas.

Info

See also:Alias(), DbInfo(), DbFieldInfo(), DbOrderInfo(), DbUseArea(), Deleted(), OrdKeyNo(), RecSize(), RLock(), Select()
Category: Database functions , Info functions
Header:Dbinfo.ch
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe