Previous Next


Value Property (RDKInput Object) - Default

Description

Returns the last sampled value of a distribution. This is most useful when using a default distribution with an input. This is the default property for the input object and thus you do not have to explicitly type ".Value".

Syntax

object.Value

Arguments

None.

Return Value

(Double) – the last sampled value for the input.

Example

'Profit is an Output.  Revenue and Cost are two 'inputs with default distributions.
'During the iteration event, you might have something 'like this:
With RDKApp
.Outputs("Profit").Value = _    .Inputs("Revenue").Value –.Inputs("Cost").Value
End With
'Since Value is the default property for both Inputs 'and Outputs, this is the same as:
With RDKApp
    .Outputs("Profit")=.Inputs("Revenue")–    Inputs("Cost")
End With