Table Editor Scripting Reference
The following table outlines the properties and methods available via the Table Editor Automation Interface. All method names are shown in yellow, and all properties are listed in green:
|
Item Name |
Short Description |
Long Description/Parameters |
|||||||||||||||||||||
|
METHODS |
|
|
|||||||||||||||||||||
|
Adds a Record or Column to the Table |
Opaque function displaying the Insert dialog, allowing you to add either a new record (row) or column.
|
||||||||||||||||||||||
|
Adds a column to the current table with interaction. |
Opaque function. Shows the Insert Column screen. |
||||||||||||||||||||||
|
Adds a column to the current table without interaction. |
Transparent function to allow the addition of a new column to the table. Accepts the following mandatory parameters:
The column index will be assigned as the next available integer (column is added to the far right of the table). |
||||||||||||||||||||||
|
Adds a record to the current table. |
Adds a record to the end of the current table, as described in Add Record. |
||||||||||||||||||||||
|
Caches all records of the loaded set. |
Create a copy of the loaded recordset in memory for more rapid subsequent access. Note that large datasets may cause reduced system performance if called. |
||||||||||||||||||||||
|
Removes the current record |
Clears the contents of the currently active table cell, replacing it with the default value for that particular column by default, however, this behaviour is controlled by the ClearToDefault boolean:
Global access to this function is controlled by the CanClear boolean. |
||||||||||||||||||||||
|
Copies the current cell data |
Copy the contents of the current cell to the clipboard. Access to this function is controlled by the CanCopy boolean. |
||||||||||||||||||||||
|
Cuts the current cell data |
Cut the contents of the current cell to the clipboard. Access to this function is controlled by the CanCut boolean. |
||||||||||||||||||||||
|
Displays the Definition Editor. |
Displays the Definition Editor, allowing the definition of the selected column to be edited interactively, or to add/delete columns. |
||||||||||||||||||||||
|
Displays the Delete dialog. |
Displays the Delete dialog allowing you to either delete the current record (row), or column in focus. |
||||||||||||||||||||||
|
Deletes the currently active Column. |
Deletes the currently active column with no user input. Access to this function is controlled by the CanDeleteColumn boolean. |
||||||||||||||||||||||
|
Deletes a specific column. |
Used to delete any column on the table, even if not in focus. The following parameters are expected:
|
||||||||||||||||||||||
|
Deletes the currently active Record. |
Deletes the currently active record (row) with no user input. Access to this function is controlled by the CanDeleteRecord boolean. |
||||||||||||||||||||||
|
Deletes a specific record. |
Used to delete any record (row) on the table, even if not in focus. The following parameters are expected:
|
||||||||||||||||||||||
|
Copy the currently selected cell content downward. |
Proliferates the contents of the current cell to all records below it, in the current column. Access to this function is controlled by the CanFillDown boolean. |
||||||||||||||||||||||
|
Copy the currently selected cell content leftward. |
Proliferates the contents of the current cell to all cells within the current record, to the left of the active cell. Note that the resulting cells contents are defined by the column definition for each column, so may not be identical to the original cell:
Access to this function is controlled by the CanFillLeft boolean. |
||||||||||||||||||||||
|
Copy the currently selected cell content rightward. |
Proliferates the contents of the current cell to all cells within the current record, to the left of the active cell. Note that the resulting cells contents are defined by the column definition for each column, so may not be identical to the original cell:
Access to this function is controlled by the CanFillRight boolean. |
||||||||||||||||||||||
|
Copy the currently selected cell content upward. |
Proliferates the contents of the current cell to all records above it, in the current column. Access to this function is controlled by the CanFillUp boolean. |
||||||||||||||||||||||
|
Displays the Find dialog. |
Displays the Find and Replace screen. Access to this function is controlled by the CanFind boolean. |
||||||||||||||||||||||
|
Search again. |
Search for the next instance of a predefined search string. Access to this function is controlled by the CanFindNext boolean. |
||||||||||||||||||||||
|
Search again (backwards). |
Search for the previous instance of a predefined search string. Access to this function is controlled by the CanFindPrev boolean. |
||||||||||||||||||||||
|
Find a specified value. |
Transparent command to allow you to search for a specified search value. The following mandatory parameters are expected:
|
||||||||||||||||||||||
|
Displays the Go to dialog. |
Displays the Go to screen, to allow you to navigate to a specific column and record, shifting the focus of the active cell. Access to this function is controlled by the CanGoto boolean. |
||||||||||||||||||||||
|
Go to a specific position in the table. |
Transparent function to allow you to shift the active cell focus to a specified column and record. The following parameters are expected:
|
||||||||||||||||||||||
|
Displays the Insert dialog |
Displays the Insert dialog, allowing you to insert either a column definition or record. Subsequent dialogs depend on the selection made:
Access to the functions resulting from this dialog is controlled by the CanInsertColumn and CanInsertRecord booleans. |
||||||||||||||||||||||
|
Insert the minimum columns required to define an Assays Definition |
Update the current table by adding columns (and corresponding definitions) relevant to an Assays Definition. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a blasthole pattern. |
Update the current table by adding columns (and corresponding definitions) relevant to a blasthole pattern file. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a block model. |
Update the current table by adding columns (and corresponding definitions) relevant to a block model. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a drillhole collar. |
Update the current table by adding columns (and corresponding definitions) relevant to a drillhole collar. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Displays the Insert Column dialog. |
Add a new column with the Insert Column screen. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert a column dynamically. |
Transparent function to insert a new column into the current table, at a specified position. The following parameters are expected:
|
||||||||||||||||||||||
|
Displays the Insert Definition dialog. |
Displays the Insert Definition screen, allowing a new column to be added interactively. |
||||||||||||||||||||||
|
Insert a new column definition based on file contents. |
Insert a new column based on the contents of a named definition file. The following parameters are expected:
Note that this differs from the LoadDefinition() method in that the existing file is appended, as opposed to a completely new definition of columns being loaded.. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a dependency. |
Update the current table by adding columns (and corresponding definitions) relevant to a dependency. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a downhole survey. |
Update the current table by adding columns (and corresponding definitions) relevant to a downhole survey. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a drillhole. |
Update the current table by adding columns (and corresponding definitions) relevant to a drillhole. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a plot file. |
Update the current table by adding columns (and corresponding definitions) relevant to a plot file. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a plotter filter. |
Update the current table by adding columns (and corresponding definitions) relevant to a plotter filter. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a plotter pen. |
Update the current table by adding columns (and corresponding definitions) relevant to a plotter pen. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define point data. |
Update the current table by adding columns (and corresponding definitions) relevant to point data. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert a new record. |
Insert a new record to the end of the table, with the next available record number being used. Access to this function is controlled by the CanInsertRecord boolean. |
||||||||||||||||||||||
|
Insert a new record at a specific position. |
Insert a new record into the loaded file by specifying its record number. All records following the insert record position will be automatically incremented. The following parameters are expected:
|
||||||||||||||||||||||
|
Insert the minimum columns required to define a results file. |
Update the current table by adding columns (and corresponding definitions) relevant to a results file. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a rosette. |
Update the current table by adding columns (and corresponding definitions) relevant to a rosette. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a mine schedule. |
Update the current table by adding columns (and corresponding definitions) relevant to a mine schedule. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a complex section definition. |
Update the current table by adding columns (and corresponding definitions) relevant to a complex section definition. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define a simple section definition. |
Update the current table by adding columns (and corresponding definitions) relevant to a simple section definition. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define string data. |
Update the current table by adding columns (and corresponding definitions) relevant to string data. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
|
Insert the minimum columns required to define an experimental variogram. |
Update the current table by adding columns (and corresponding definitions) relevant to an experimental variogram model (note that these files are normally generated by the VGRAM process. Access to this function is controlled by the CanInsertColumn boolean. |
|||||||||||||||||||||
|
Insert the minimum columns required to define a variogram mdoel. |
Update the current table by adding columns (and corresponding definitions) relevant to a variogram model. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define wireframe point data. |
Update the current table by adding columns (and corresponding definitions) relevant to wireframe point data. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Insert the minimum columns required to define wireframe triangle data. |
Update the current table by adding columns (and corresponding definitions) relevant to wireframe triangle data. Access to this function is controlled by the CanInsertColumn boolean. |
||||||||||||||||||||||
|
Load new column definitions. |
Load a new set of columns, replacing the existing table display, according to the contents of a specified definition file. The following parameters are expected:
This method differs from the LoadDefinitionFromFile() method in that all existing table data is replaced by the contents of the external file. Access to this function is controlled by the CanLoadDefinition boolean. |
||||||||||||||||||||||
|
Move to the first record. |
Make the first row in the table selected. Access to this function is controlled by the CanMoveFirst boolean. |
||||||||||||||||||||||
|
Move to the last record. |
Make the last row in the table selected. Access to this function is controlled by the CanMoveLast boolean. |
||||||||||||||||||||||
|
Move to the next record. |
Make the next row in the table selected. Access to this function is controlled by the CanMoveNext boolean. |
||||||||||||||||||||||
|
Move to the previous record. |
Make the previous row in the table selected. Access to this function is controlled by the CanMovePrev boolean. |
||||||||||||||||||||||
|
Create a new table. |
Creates a new table, removing the contents of the current table from memory. Warning: This method does not incorporate validation for saving changes to existing data; if you are scripting this command, it is important that you make a call to Save() or SaveAs() or one of the export facilities, if you need to preserve current table data. |
||||||||||||||||||||||
|
Displays the Open dialog. |
Displays the Open screen, allowing you to select a Datamine format file to be loaded into the current Table Editor component. |
||||||||||||||||||||||
|
Open a comma-delimited file. |
Loads the contents of an external comma-delimited (CSV) file into the Table Editor component. This function can be used in one of two ways:
The following parameters are mandatory:
Access to this function is controlled by the CanOpenCSV boolean. |
||||||||||||||||||||||
|
Opens a named file. |
This function can be used in one of two ways:
The following parameters are mandatory:
|
||||||||||||||||||||||
|
Paste the contents of the clipboard. |
Paste the contents of the clipboard to the currently active cell. Access to this function is controlled by the CanPaste boolean. |
||||||||||||||||||||||
|
Displays the Precision Converter dialog. |
Displays the Precision Converter screen. |
||||||||||||||||||||||
|
Displays the File Properties dialog. |
Displays the File Properties dialog. If a file has not been loaded into the Table Editor already, the description of the file will begin "File created by Table Editor..." followed by the date and time. |
||||||||||||||||||||||
|
Redo the previous command. |
Redo the previous command. Access to this function is controlled by the CanRedo boolean. |
||||||||||||||||||||||
|
Display the Find/Replace dialog. |
Display the Find/Replace dialog, open at the Replace tab. Access to this function is controlled by the CanReplace boolean. |
||||||||||||||||||||||
|
Search for and replace all instances of a string. |
A transparent function allowing you to replace all instances of a given string with another specified string. The following parameters are expected:
|
||||||||||||||||||||||
|
Displays the Run Formula dialog. |
Displays the Run Formula screen to allow conditional formula(e) to be applied across the current table. Access to this function is controlled by the CanRunFormula boolean. |
||||||||||||||||||||||
|
Save the current table data. |
Save the current table data, updating the currently loaded file. |
||||||||||||||||||||||
|
Displays the Save as dialog, or saves the file with a specified name. |
This function can be used in either of two ways.
The following parameters are expected:
Note that if an existing file is specified, you will need to confirm interactively if an overwrite is permitted. |
||||||||||||||||||||||
|
Displays the Save as dialog, or saves the file with a specified name allowing optional prompt-free overwriting. |
This function can be used in either of two ways.
The following parameters are expected:
|
||||||||||||||||||||||
|
Save the current table data in comma-delimited format. |
This function can be used in either of two ways.
The following parameters are expected:
|
||||||||||||||||||||||
|
Save the current column definitions as XML. |
Save the current column definitions to an external XML format file. The following parameters are expected:
|
||||||||||||||||||||||
|
Select the full table |
Select the entire contents of the table. Access to this function is controlled by the CanSelectAll boolean. |
||||||||||||||||||||||
|
Undo the last command. |
Undo the last command, based on the contents of Object.UndoDescription. Access to this function is controlled by the CanUndo boolean. |
||||||||||||||||||||||
|
Update the definition of a specific column dynamically. |
A transparent function to update the definition of any column within the loaded table. The following mandatory parameters are expected:
|
||||||||||||||||||||||
|
PROPERTIES |
Data Type |
Description |
|||||||||||||||||||||
|
Boolean |
For the Column represented by the CurrentColumn index, this property is used to set or return a boolean representing whether the column contains implicit (true) or explicit (false) values. This property expects the following parameters:
|
||||||||||||||||||||||
|
String |
For the Column represented by the CurrentColumn index, this property is used to set or return a string representing the name of the current column. Note that Datamine files expect column names to be no longer than 8 characters. This property expects the following parameters:
|
||||||||||||||||||||||
|
String |
For the Column represented by the CurrentColumn index, this property is used to set or return a string representing the type of data contained within. The following constant values are permitted:
Any value passed not corresponding to the above will be interpreted as the column containing a numeric data type. This property expects the following parameters:
|
||||||||||||||||||||||
|
String |
For the Column represented by the CurrentColumn index, this property is used to set or return a string representing the default value of the cells within the column. This property expects the following parameters:
|
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Clear() function can be called for the current table, regardless of the ClearToDefault property. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Copy() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Cut() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the DeleteColumn() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the DeleteRecord() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the contents of the current table can be edited. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the definition of columns can be edited. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the FillDown() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the FillLeft() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the FillRight() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the FillUp() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Find() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the FindNext() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the FindPrev() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Goto() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the InsertColumn() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the InsertRecord() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the LoadDefinition() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the MoveFirst() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the MoveLast() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the MoveNext() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the MovePrev() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the OpenCSV() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Paste() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Redo() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Replace() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the RunFormula() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the SaveAsCSV() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the SaveDefinitionAs() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the SelectAll() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean defining whether the Undo() function can be called. |
||||||||||||||||||||||
|
Boolean |
Boolean that represents how the Clear() function is performed:
|
||||||||||||||||||||||
|
Long Integer |
Returns an integer representing the number of columns in the current table. |
||||||||||||||||||||||
|
Long Integer |
Read-only. Returns the column index for the currently selected column. |
||||||||||||||||||||||
|
Long Integer |
Returns the index of the named column. This property expects the following parameters:
|
||||||||||||||||||||||
|
Long Integer |
Returns the maximum length of the field permitted for a specified column. This property expects the following parameters:
|
||||||||||||||||||||||
|
String |
Returns the value held within the active table cell. |
||||||||||||||||||||||
|
String |
Returns the record number for the currently selected data. |
||||||||||||||||||||||
|
Boolean |
True = context menu enabled, false = disabled context menu. |
||||||||||||||||||||||
|
Boolean |
True = enable shortcuts, false = disable shortcuts. |
||||||||||||||||||||||
|
String |
A string represent the full file path to the currently loaded table. |
||||||||||||||||||||||
|
String |
A string represent the full file path to the context Help for the Table Editor. |
||||||||||||||||||||||
|
Boolean |
Represents the read/write status of the loaded table. True = read only, False = read/write. |
||||||||||||||||||||||
|
Long Integer |
An integer representing the total number of records in the loaded table. |
||||||||||||||||||||||
|
String |
The current description of the command to be re-done. |
||||||||||||||||||||||
|
String |
Represents the file description for the loaded file. |
||||||||||||||||||||||
|
Boolean |
Boolean representing if changes have been made to the current data set. False = no changes made, True = changes made. Commonly used in conjunction with the Save() method to ensure changes are saved. |
||||||||||||||||||||||
|
Boolean |
Boolean representing the current precision status of the loaded file. False = single precision True = extended precision |
||||||||||||||||||||||
|
String |
The current description of the command to be undone. |
