Skip to content

CurrentRowId - DataList_

Returns the RowId of the current record

Type: Property
Access: Read/Write
Data Type: RowID
Parameters: None

Syntax

Property RowID CurrentRowId
Access Type Syntax
Read Access: Get CurrentRowId to RowIDVariable
Write Access: Set CurrentRowId to RowIDVariable/Value

Description

Syntax

RowId riRow
Get CurrentRowId of hoDDO to riRow

CurrentRowId is used to obtain the current record identity (RowId) of a dbGrid or dbList object. This function can be used store a record's identity so that the record can be refound at a later time.

If the object does not contain a current record, a Null RowId value will be returned.

Procedure CheckRecord
    RowId riCurrentInvoice

    Get CurrentRowId of oInvoicesGrid to riCurrentInvoice
    If (IsNullRowID(riCurrentInvoice)) begin
         Error DFERR_OPERATOR "There is no Record to Process"
    End
    Else Begin
        Send ProcessRecord riCurrentInvoice
    End
End_Procedure  // CheckRecord

You can also use the HasRecord function to determine if a dbGrid or dbList's server DDO contains an active record.