To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 8581
8580  |  8582
Subject: 
Re: New LDDesignPad Plugin
Newsgroups: 
lugnet.cad
Date: 
Tue, 27 Aug 2002 19:46:23 GMT
Viewed: 
1313 times
  
"Orion Pobursky" <bilthefish@IHATESPAMyahoo.com> skrev i meddelandet
news:H1HL1F.FuK@lugnet.com...
In lugnet.cad, Don Heyse writes:
In lugnet.cad, Jaco van der Molen writes:
1 0 -39,971 -6,3 0 0 -0,022 1 0 1 0,022 -1 0 0 754.dat

This might work better if it used decimal points instead of
the commas.

That's really wierd.  It uses decimal points on both my machines.  The
problem may be due to your Windows regional settings if you are in Europe • (
I think some European nations used the comma as a decimal separator).

Delphi, right?

In your main unit put the following at the end:

...
initialization
  ...
  DecimalSeparator := '.';
  Application.UpdateFormatSettings := False;
  ...
finalization
  ...
end.

This way you override the Windows regional settings for decimal point/comma
at startup. The "UpdateFormatSettings := False;" protects you from changes
made in Windows while the program is running.

Please note that date formats are also very regional:

US:  mm/dd/yy
EU:  yyyy-mm-dd
??:  dd/mm/yyyy
etc.

so be careful assuming anything about a formatted date...

--
Anders Isaksson, Sweden
BlockCAD:  http://user.tninet.se/~hbh828t/proglego.htm
Gallery:   http://user.tninet.se/~hbh828t/gallery/index.htm



Message is in Reply To:
  Re: New LDDesignPad Plugin
 
(...) That's really wierd. It uses decimal points on both my machines. The problem may be due to your Windows regional settings if you are in Europe ( I think some European nations used the comma as a decimal separator). -Orion (22 years ago, 27-Aug-02, to lugnet.cad)

31 Messages in This Thread:










Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR