Add code before initialization of units in Delphi

Posted by Alan Clark on Stack Overflow See other posts from Stack Overflow or by Alan Clark
Published on 2010-05-27T22:28:15Z Indexed on 2010/05/27 22:31 UTC
Read the original article Hit count: 232

Filed under:

Is there a place where I can add code that will be executed before unit initialization?

The reason I want to do this is I need to change the DecimalSeparator, this has to be done before the initialization of some units. I have put it in the project source, before Application.Initialize but it is too late by then.

As I see it the only choice I have is to put it in the initialization of the unit that needs the DecimalSeparator to be changed, is this the case?

Thanks in advance for any advice.

© Stack Overflow or respective owner

Related posts about delphi