CModel.Parameters: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<onlyinclude>Returns a '''[[ParamValues Class|ParamValues]]''' object | <onlyinclude>Returns a '''[[ParamValues Class|ParamValues]]''' object that represents the parameter names and their values for an associated [[CModel_Class|cModel]] object.</onlyinclude> | ||
== Syntax== | == Syntax== |
Revision as of 23:38, 7 April 2016
Member of: SynthesisAPI.cModel
Returns a ParamValues object that represents the parameter names and their values for 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 a list 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)