Initializes a DB Simulation. results will be appended to the specified DataTable
Namespace: WaterSimDCDCAssembly: WaterSimDCDC_API (in WaterSimDCDC_API.dll) Version: 5.0.0.10 (5.0.0.10)
Syntax
C# |
---|
public bool Simulation_Initialize( DataTable aDataTable, string Scenario_Name ) |
Visual Basic |
---|
Public Function Simulation_Initialize ( _ aDataTable As DataTable, _ Scenario_Name As String _ ) As Boolean |
Parameters
- aDataTable
- Type: System.Data..::..DataTable
a DataTable used for output
- Scenario_Name
- Type: System..::..String
the name of the scenario to label the output
Return Value
true if datatable was opended and simulation initialized, false otherwise, check isError and GetErrorMessage()Remarks
The datatable must exist in the dbConnection database. The scenario name is important becuase it can be used to retrieve the Simulation inputs from the datatable later.