Registered forum members do not see this ad.
We sometimes get a conflict here as the decimal seperator on a German language OS is by default a comma and some software will only work properly when its set to a "."
I don't honestly believe it is your problem here, but its worth a look.
Have you tried running your program on another machine? Try to find out if its machine specific or code specific.
As an aside, I had exactly this problem in 2007 when I wrote some VBA code and used the "0.##0" to get round the problem. Yesterday I ran the same code on a new W7 x64 machine with AutoCAD 2013 and replaced "0.##0" with "0.000" and it worked fine! It looks to be more Machine specific than anything else. After I got that result I tested on anther XP Pro x86 running AutoCAD 2010 and "0.000" worked fine there too.
Engage brain before mouth
"The German who types with a Yorkshire accent" - Dave Broada 2o1o


Registered forum members do not see this ad.
Hey all, after being booted off this site for apparently sending an advert post, I'm back
I managed to sort my number formatting / decimal place issue with a little bit of cheating though I'm afraid. I simply converted the value to a string variable then formatted it. Its fine for what I needed but obviously not the correct way but needs must I guess..
Thanks for all your help guys and if you find a reason why mine didn't work before, please let me know and I'll do likewise..
Cheers,
PaulRenegade @ hardwiredstudios..
XP Pro / AutoCAD 2007 : Pentium Core 2 Q6600 Quad Core : ASUS P5N-E SLI Motherboard : 4GB DDR2 RAM : 2 x SLI NVIDIA 8500GT SLi 1024MB DDR2 PCI-Express Graphics Cards
Bookmarks