Click or drag to resize

RddList Function

X#
Get a list of RDDs in use.

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

Return Value

Type: Array
An array with the names of currently loaded RDDs.
Remarks
Examples
The following example opens up two files via the default of DBFNTX 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