Adds a new DataSource to the collection and returns a reference to the new DataSource.

public DataSource AddItem(string Type,
	string ItemName);

Return Value

A reference to the newly created DataSource.


The type of DataSource object to create, one of:

  • VFP: a Visual FoxPro data source.
  • ODBC: an ODBC data source.
  • ADO: an ADO/OLE DB data source.
  • WebService: a data source accessed via a Web service.
  • SQLXML: a SQL Server data source accessed via HTTP. See the SQL Server Books Online or the MSDN Web site ( for information on SQLXML.
  • Text: comma-delimited text files. The name of the file must be in the Custom Properties property of each table in the data dictionary and the path must be in the Database property of the DataSource object.

The name to assign to the new DataSource.


See also:

Class DataSources

© Stonefield Software Inc., 2023 • Updated: 06/06/16
Comment or report problem with topic