CModel.Parameters: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 17: | Line 17: | ||
{{APIComment|...}} | {{APIComment|...}} | ||
{{APIComment|'Get | {{APIComment|'Get an array of the model's parameters.}} | ||
{{APIPrefix|Dim}} ModelParameters() {{APIPrefix|As}} ParamValues | {{APIPrefix|Dim}} ModelParameters() {{APIPrefix|As}} ParamValues | ||
ModelParameters = AModel.Parameters() | ModelParameters = AModel.Parameters() |
Latest revision as of 17:53, 17 June 2016
Member of: SynthesisAPI.cModel
Returns an array of ParamValues objects that represent the parameter name and value pairs of an associated cModel object.
Syntax
.Parameters()
Example
VBA|VB.NET ... 'Add code to get an existing model or create a new one. Dim AModel As New cModel ... 'Get an array of the model's parameters. Dim ModelParameters() As ParamValues ModelParameters = AModel.Parameters() 'Output example: Display the name and value of the first parameter. Dim ParamName As String Dim ParamValue As Double ParamName = ModelParameters(0).ParamName ParamValue = ModelParameters(0).Value MsgBox (ParamName & " = " & ParamValue)