CModel.Parameters: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:cModel.Parameters}}
{{Template:API}}{{Template:APIBreadcrumb|9|.[[CModel Class|cModel]]}}
{{Template:APIClass|CModel Class|cModel}}  
 
{{Template:CModel.Parameters.Cmt}}
 
<onlyinclude>Returns a [[ParamValues Class|ParamValues]] object array, which contains the names and values of a model's parameters.</onlyinclude>


== Syntax==
== Syntax==
*Parameters(){{APIPrefix|As}}[[ParamValues Class|ParamValues]]()
.Parameters()
 


== Usage Example ==
==Example ==
<div style="margin-right: 150px;">
'''VBA|VB.NET'''
  {{APIComment|'Declare the cModel class using an in-line parameter list.}}
   Dim newModel As New cModel(ModelTypeEnum.Weibull2,
{{APIComment|...}}
    ModelCategoryEnum.Reliability, "NewModel1", 1, 100)
 
  {{APIComment|'Add code to get an existing model or create a new one.}}
  {{APIComment|'Get the list of model parameters. See [[ParamValues Class|ParamValues]].}}
   {{APIPrefix|Dim}} AModel {{APIPrefix|As New}} cModel
   Dim ModelParameters() As [[ParamValues Class|ParamValues]]
{{APIComment|...}}
   ModelParameters = newModel.Parameters
</div>
  {{APIComment|'Get a list of the model's parameters.}}
   {{APIPrefix|Dim}} ModelParameters() {{APIPrefix|As}} ParamValues
   ModelParameters = AModel.Parameters

Revision as of 18:25, 28 July 2015

APIWiki.png


Member of: SynthesisAPI9.cModel


Returns a ParamValues object array, which contains the names and values of a model's parameters.

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