DbRecordInfo Function | |
Retrieve field definition information about a record.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax FUNCTION DbRecordInfo(
kInfoType,
uRecId,
uNewValue
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Usual DbRecordInfo(
Usual kInfoType = default,
Usual uRecId = default,
Usual uNewValue = default
)
Request Example
View SourceParameters
- kInfoType (Optional)
- Type: Usual
Determines what type of information is retrieved.
The constants are listed in the Remarks section below.
- uRecId (Optional)
- Type: Usual
- uNewValue (Optional)
- Type: Usual
This parameter is reserved for RDDs that allow you to change the information rather than just retrieve it.
None of the supplied RDDs support this argument. Either omit the argument or specify it as NIL.
Return Value
Type:
UsualRemarks
DBRecordInfo() retrieves information about the state of a record (row).
The type of information retrieved is specified as
kInfoType:
Tip |
---|
The values in the table below exist both as DEFINEs and also as members of the DbRecordInfo enum.
You can see the numeric values of the defines in the documentation of this Enum.
|
Constant | Returned Value |
---|
DBRI_BUFFPTR
| Pointer to current record buffer |
DBRI_DELETED
| Is record deleted? |
DBRI_DELETED | Is record deleted? |
DBRI_RECSIZE
|
Record length.
|
DBRI_LOCKED |
Is record locked?
|
DBRI_RECNO | Record position (like the RecNo access). |
DBRI_USER | Start of user defined DBRI_ values. |
Tip |
---|
DBRI_USER is a constant that returns the minimum value that third-party RDD developers can
use for defining new properties. Values less than DBRI_USER are reserved for X# development.
|
Examples
The following examples retrieve record information:
1DBRecordInfo(DBRI_RECSIZE)
2
3DBRecordInfo(DBRI_LOCKED, 200)
4
5DBRecordInfo(DBRI_DELETED, 201)
6
7DBRecordInfo(DBRI_FORCEREFRESH)
8
9DBRecordInfo(DBRI_RECNO, 230)
10
11
12
13
14DBRecordInfo(DBRI_BUFFPTR)
15
See Also