Skip to content

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 ObjectTDataTable: You can use the variable returned by the 'Create Data Table' component.

  • Conversion MethodInteger: Conversion Method

  • Specified Column Namestring: 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 Numberstring: 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 ToInteger: Enter the data type to which you want to convert.

  • Preview in Data TableBoolean: Preview in Data Table

  • Print Component Output ValueBoolean: When checked, the variable data or value generated by the component will be output and printed to the console log.

Command Output

  • Conversion ResultTDataTable: Conversion Result

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • 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