public async override Task RunCommand(object sender)
        {
            var         engine    = (IAutomationEngineInstance)sender;
            OBDataTable dataTable = (OBDataTable)await v_DataTable.EvaluateCode(engine);

            dataTable.Clear();

            dataTable.SetVariableValue(engine, v_OutputUserVariableName);
        }
Beispiel #2
0
        public async override Task RunCommand(object sender)
        {
            var engine = (IAutomationEngineInstance)sender;

            OBDataTable dataTable = (OBDataTable)await v_DataTable.EvaluateCode(engine);

            dynamic column = await v_ColumnName.EvaluateCode(engine);

            if (v_Option == "Column Index")
            {
                dataTable.Columns.RemoveAt((int)column);
            }
            else
            {
                dataTable.Columns.Remove((string)column);
            }

            dataTable.SetVariableValue(engine, v_OutputUserVariableName);
        }