Examples of using the dBase database
dBase database in the PmaAdo object
The
PmaAdo object is created, containing the
DtiOper method on the "
Methods" tab. This method represents the basic inteface for working with database tables and can be used, for example, by the
Preconfiguration "Panel with editable table viewer of data source" viewer.
The interface uses the
ADO technology that can be extended by additional functionality:
Example1:
Creates new table data with columns nTime (time), 'flags' (integer) and 'value1' (real number).
JavaScriptVBScriptSelect and copy to clipboard
pMe.DbExecute("", "CREATE TABLE data (nTime CHAR, flags NUMERIC, value1 FLOAT)", "");
pMe.DbExecute "", "CREATE TABLE data (nTime CHAR, flags NUMERIC, value1 FLOAT)", ""
Example2:
Removes data table
JavaScriptVBScriptSelect and copy to clipboard
pMe.DbExecute("", "DROP TABLE data", "");
pMe.DbExecute "", "DROP TABLE data", ""