TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: JEROEN VAN KALKEN
from: GERRY DANEN
date: 1997-04-25 12:51:00
subject: FoxPro 2.5 Win transform()

 GD> I've got the strangest thing happening in FP2.5 for Windows.
 GD> Try this little program:
 GD>
 GD>         amt = 8999.98
 GD>         ? transform(amt, '999,999.99')
 GD>
 GD> and I get this result:
 GD>
 GD>         9,000.00
 GD>
 GD> Can anyone confirm this?  Is this a known bug?  The transform()
 GD> function started going strange about April 3rd of this year.  Could
 GD> this be a date- related thing?
 JvK> Yes confirmed. (with fpw 2.6)
 JvK> But you forgot some essential line:
 JvK> set decimal to 0
 JvK> apperently foxpro rounds amt to 'decimals' before executing the
 JvK> transform function.
Actually, Windows was the culprit.  Decimals were set to 0 in the
international section of the control panel.  Fixed that, and the problem
went away.
Gerry Danen
      gdanen@accessweb.com
      CompuServe: 102736,3352
... What!? This isn't the Files section?
--- Maximus 3.01
---------------
* Origin: C+Net BBS. Programming & Networking. (1:342/1017)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.