Reply
 
LinkBack Thread Tools Display Modes
Old 06-11-2009, 06:18 PM   #1 (permalink)
CrystalHacker
Guest
 
Posts: n/a
Default 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
-------------
  Reply With Quote
Old 06-12-2009, 01:28 AM   #2 (permalink)
CrystalHacker
Guest
 
Posts: n/a
Default

The answer turns out to be
** *If Not Double.TryParse(clientDistanceParam.ToString, clientDistance) Then ...

duhh
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass a Subreport parameters then filter on them djg58 Reports and Reporting Center 1 03-27-2008 01:34 PM


All times are GMT. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.