DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 24 Jul 2007 17:03:02 +0200,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    Michel Vanderbeke


DataReader values and .ToString   
Hello,

In order to avoid errors, I have all my DataReader-fields converted with a 
..ToString.
This in case some record could have Null-fields and an error would be 
thrown.

This works fine, except for "money" fields in SQL-Server.
When I enter e.g. ? 2,50 and I read it back with a DataReader without 
..ToString, I get the correct display.
However using .ToString, I get no valuta-sign and the value is multiplied by 
10 000.

When trying to StringFormat the DataReader.ToString, I get a syntax error.

Can someone explain this to me an offer some help?

Many thanks and greetings,

Michel
Date:Tue, 24 Jul 2007 17:03:02 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us