CCur() problem on Windows XP 
Author Message
 CCur() problem on Windows XP

Have an application written using Visual Basic with Visual
Studio 6.  I am using Ccur() to convert a string to
currency, and I get the following result when running the
application on Windows XP:

Wrong:   Ccur("0.32234432234432") returns 0
Right:   Ccur("0.3223443223443") returns "0.3223"

In the "Wrong" example above, I get "0.3223" when running
the application on anything other than Windows XP.

Has anyone else seen this yet?  Why is XP computing it
differently?

Randy Billinger
Webinstance Consulting, LLC



Sun, 05 Sep 2004 01:05:06 GMT  
 CCur() problem on Windows XP
Well I have only tried this on XP, but it definitely looks as though CCur
doesn't like strings with more than 13 decimal places. However, if you do
the following:

CCur(CDbl("0.32234432234432"))

You should get the right result, although this doesn't explain why CCur
behaves differently.

--
Kevin Westhead


Quote:
> Have an application written using Visual Basic with Visual
> Studio 6.  I am using Ccur() to convert a string to
> currency, and I get the following result when running the
> application on Windows XP:

> Wrong:   Ccur("0.32234432234432") returns 0
> Right:   Ccur("0.3223443223443") returns "0.3223"

> In the "Wrong" example above, I get "0.3223" when running
> the application on anything other than Windows XP.

> Has anyone else seen this yet?  Why is XP computing it
> differently?

> Randy Billinger
> Webinstance Consulting, LLC




Sun, 05 Sep 2004 03:57:06 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. DatePicker problem under Windows XP and Office XP

2. Ann: Live Chat on VenturCom Boot-NIC - Windows 2000/XP/XP Embedded Diskless Network Boot

3. Problems with Windows XP - Outlook

4. I have a problem with windows XP

5. Out of memory problem when running Access97 under Windows XP

6. Problem with Saving template in Windows XP

7. Problem when shutting down Windows XP(RC2)

8. Windows XP ISAM Error 3170 Problem

9. VB6.0 on Windows XP installation problem

10. GUI problems b/x windows xp and 2000

11. VB6 and Windows XP (problems?)

12. Problem using SetKeyboardState API call on Windows XP Pro

 

 
Powered by phpBB® Forum Software