Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## NUM-DBS function

> Takes no arguments; returns the number of connected databases.

> #### Syntax

>     NUM-DBS

> Example

> This procedure uses NUM-DBS to display the logical name and database restrictions of all connected databases:

> r-numdbs.p
>     DEFINE VARIABLE i AS INTEGER.
>     REPEAT i = 1 TO NUM-DBS:
>       DISPLAY LDBNAME(i) DBRESTRICTIONS(i) FORMAT "x(40)".
>     END.

> #### See also

> ALIAS function, CONNECT statement, CONNECTED function, CREATE ALIAS statement, CREATE CALL statement, DATASERVERS function, DBCODEPAGE function, DBCOLLATION function, DBRESTRICTIONS function, DBTYPE function, DBVERSION function, DELETE ALIAS statement, DISCONNECT statement, FRAME-DB function, LDBNAME function, PDBNAME function, SDBNAME function

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095