Click or drag to resize

RddCount Function

Get the number of currently loaded RDDs.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.10
Syntax
 FUNCTION RddCount() AS DWORD
View Source

Return Value

Type: UInt32
Remarks
Examples
The following example opens up two files via the DBFNTX driver and another file via the DBFMDX drivers.  It then counts and lists all the RDDs in use:
X#
PROCEDURE Start()
        LOCAL aRDD         AS ARRAY
        LOCAL wRDDs        AS SHORTINT
        LOCAL i                 AS SHORTINT
        USE customer NEW
        USE address NEW
        USE memos VIA DBFMDX NEW
        wRDDs:= ;        RDDCount(RDT_FULL+RDT_TRANSFER+RDT_HIDDEN)
        aRDD := ;        RDDList(RDT_FULL+RDT_TRANSFER+RDT_HIDDEN)
        FOR i := 1 UPTO wRDDs
                QOut(aRDD[i])
        NEXT
        RETURN
See Also