a5_Active_Link_CreateReadOnly Function
Syntax
Arguments
- Return value
.T. if active-link definition was created.
- table_filename
Filename of the .dbf table (i.e. the active-link table definition)
- connectionString
The connection string to the remote database
- selectStatement
The SQL query string for the remote database
- flagAddTableToDatabse
Logical. Specify if the active-link table should be added to the current database. If you are creating a temporary active-link definition, it is much faster if you do NOT add it to the current database.
Description
Create a simple, read-only active-link table.
Discussion
DescriptionCreate a simple, read-only active-link table. Used to create an ad-hoc, read-only active-link table definition.
The following code creates an an active-link table using a saved connection string to the sample Northwind database. The active-link table has just two columns, customerId and ContactName. A default browse is then opened to show the data in the active-link table.
a5_Active_Link_CreateReadOnly("c:\mydata\temptable.dbf","::name::northwind","select customerid, contactname from customers",.f.) a5_open_default_browse("c:\mydata\temptable.dbf")