*tableexport
Exports data from a table to a file.
Syntax
*tableexport name filename delimiter
Type
HyperMesh Tcl Modify Command
Description
Exports data from a table to a file.
Inputs
- name
- The name of the table to export.
- filename
- The full path and filename of the file to write.
- delimiter
- The character or string to use as the delimiter. The value must be enclosed in quotes. If not specified, the default is a comma (CSV).
Examples
To write out table1 with commas as the separator.
*tableexport table1 C:/table1.txt ","
or
*tableexport table1 C:/table1.txt
To write out table1 with ABC as the separator.
*tableexport table1 C:/table1.txt "ABC"
Errors
Incorrect usage results in a Tcl error. To detect
errors, you can use the catch
command:
if { [ catch {command_name...} ] } {
# Handle error
}
Version History
11.0