Convert Data Type
Function Description
TIP
Convert the specified column or the entire table of a data table object into string (str), integer (int), or float (float).
Configuration Item Description
General
Command Input
Data Table Object
TDataTable
: You can use the variable returned by the 'Create Data Table' component.Conversion Method
Integer
: Conversion MethodSpecified Column Name
string
: Enter the column that needs to be converted to a different data type. An empty input indicates converting the entire table. For a single column, enter [ColumnName1]. For multiple columns, enter [ColumnName1, ColumnName2, ColumnName3]Specified Column Number
string
: Enter the column number that needs to be converted to a different data type. An empty input indicates converting the entire table. For a single column, enter [1]. For multiple columns, enter [1,2,3]Convert To
Integer
: Enter the data type to which you want to convert.Preview in Data Table
Boolean
: Preview in Data TablePrint Component Output Value
Boolean
: When checked, the variable data or value generated by the component will be output and printed to the console log.
Command Output
- Conversion Result
TDataTable
: Conversion Result
Error Handling
Print Error Logs
Boolean
: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.Handling Method
Integer
:Terminate Process: If the command fails, terminate the process.
Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.
Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.
Usage Example
Process logic description:
Common Errors and Handling
None
Frequently Asked Questions
None