Returns a string representing a ';' delimited list of the databases currently connected to the document.
FUNCTION DBDocGetDB(VAR outDatabases : DYNARRAY[] of CHAR): BOOLEAN;def vs.DBDocGetDB():
return (BOOLEAN, outDatabases)| Name | Type | Description |
|---|---|---|
| outDatabases | DYNARRAY[] of CHAR |
_c_ 2010.09.27: Some observations:
- no database connections in the document: returns FALSE
- one database connected to the document: the string won't end with colon ";".
- more databases connected: colon-separated string of database names.
PROCEDURE ODBCtest;
VAR
outDatabases : DYNARRAY [] OF CHAR;
BEGIN
outDatabases := '';
IF DBDocGetDB(outDatabases) THEN BEGIN
AlrtDialog(outDatabases); { colon-separated list of databases, if more than one }
{ .... }
END;
END;
Run(ODBCtest);def ODBCtest():
outDatabases = ''
hasDB, outDatabases= vs.DBDocGetDB()
if hasDB:
vs.AlrtDialog(outDatabases); #{ colon-separated list of databases, if more than one }
ODBCtest()Availability: from Vectorworks 2011