Setup to Pass Numeric Values as Parameters
I am able to follow the script examples to pass Boolean values, but I can't seem to consume a Double value properly.
I did some searching but could not find a discussion on this topic.
The following code always returns "1". I'm not sure what is going on with the TryParse but the clientDistance = 1 seems to be executing.
-------------
' Dim clientDistance As Double
Dim clientDistanceParam As object = ReportUtilities.ReturnParameterValue("ClientDistan ce")
If Not clientDistanceParam Is Nothing Then
. If Not Boolean.TryParse(clientDistanceParam.ToString, clientDistance) Then
clientDistance = 1
End If
End If
-------------
|