public override void RunCommand(object sender) { var engine = (IAutomationEngineInstance)sender; var dataTableVariable = v_DataTable.ConvertUserVariableToObject(engine, nameof(v_DataTable), this); OBDataTable dataTable = (OBDataTable)dataTableVariable; dataTable.Clear(); dataTable.StoreInUserVariable(engine, v_DataTable, nameof(v_DataTable), this); }
public override void RunCommand(object sender) { var engine = (IAutomationEngineInstance)sender; var dataTableVariable = v_DataTable.ConvertUserVariableToObject(engine, nameof(v_DataTable), this); OBDataTable dataTable = (OBDataTable)dataTableVariable; var ColumnName = v_ColumnName.ConvertUserVariableToString(engine); dataTable.Columns.Remove(ColumnName); dataTable.StoreInUserVariable(engine, v_DataTable, nameof(v_DataTable), this); }