If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Need to remove commas from Numeric Parameter

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-09, 15:57
saffoap saffoap is offline
Registered User
 
Join Date: Sep 2009
Posts: 2
Need to remove commas from Numeric Parameter

I am using Crystal 2008 and have a dynamic pick list of numeric order numbers. The problem is the list is being displayed with commas. I have tried to use a formula for the parameter totext but have been unsuccessful in suppressing the commas.
Reply With Quote
  #2 (permalink)  
Old 09-28-09, 16:13
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Can you give us some example values (complete with commas)?
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 09-29-09, 02:01
tdecker81 tdecker81 is offline
Registered User
 
Join Date: Feb 2007
Posts: 33
Convert To String Using Command

https://forums.sdn.sap.com/message.j...sageID=5899330

I found this post on the same topic elsewhere and agree with them. You should be able to convert your number to a string before the data comes into crystal by using CAST(YourNumberField as VarChar(15)) Change the length to the number of digits in the longest number in your field.

Good luck
Reply With Quote
  #4 (permalink)  
Old 09-30-09, 15:01
saffoap saffoap is offline
Registered User
 
Join Date: Sep 2009
Posts: 2
Thank you very much but I was trying to avoid casting it to string. It is actually sent to a stored procedure which expects a number. If I cast it then I need to change the stored procedure but if that is the only way then I will do that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On