Previous Next


Add Method (RDKInputs Collection Object)

Description

Adds a new input to the collection.

Syntax

object.Add(inputName as String, Optional defaultDistribution)

Arguments

inputName (Required String) – the name of the new input. All inputs and outputs in an RDK Model must have unique names.

defaultDistribution (Optional Variant) – a default distribution to use for this input. This can be either an RDKDistribution object or a string which defines the distribution (e.g., "RiskNormal(0,1)"). For more information, see the DefineDefaultDistribution method.

Return Value

(RDKInput) – the new input object.

Example

Set newInputObject = RDKApp.Inputs.Add("theNewInput")