Show contents 

Db > Db Assembly Interfaces > IOdbcDataset > IOdbcDataset.Location

IOdbcDataset.Location

Syntax

Location: String;

Description

The Location property determines a path to the ODBC data source.

Example

Sub UserProc;
Var
    Mb: IMetabase;
    ODBC: IOdbcDataset;
    s: String;
Begin
    Mb:=MetabaseClass.Active;
    ODBC:=MB.ItemById("ODBC_SOURCE").Bind As IOdbcDataset;
    s:=ODBC.Location;
End Sub UserProc;

After executing the example, the "s" variable contains the path to the ODBC data source with the ODBC_SOURCE identifier.

See also:

IOdbcDataset