Click or drag to resize

RddCount Function

X#
Get the number of currently loaded RDDs.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION RddCount() AS DWORD CLIPPER
Request Example View Source

Return Value

Type: DWord
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#
 1PROCEDURE Start()
 2    LOCAL aRDD     AS ARRAY
 3    LOCAL wRDDs    AS SHORTINT
 4    LOCAL i         AS SHORTINT
 5    USE customer NEW
 6    USE address NEW
 7    USE memos VIA DBFMDX NEW
 8    wRDDs:= ;    RDDCount(RDT_FULL+RDT_TRANSFER+RDT_HIDDEN)
 9    aRDD := ;    RDDList(RDT_FULL+RDT_TRANSFER+RDT_HIDDEN)
10    FOR i := 1 UPTO wRDDs
11        QOut(aRDD[i])
12    NEXT
13    RETURN
See Also