For Delphi programmers! fatal exception...

Status
Not open for further replies.

aNdreiBuuu

Full Member level 4
Joined
Apr 30, 2001
Messages
223
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,298
Location
moon
Activity points
1,796
IF yoiu are using edits component with mask (Numeric, data, etc) be carefull at regional setings. For example if decimal points is set to ',' and your program use '.', the application will generate fatal exception... and is almost impossible to debug...

so in dpr project add this lines to fix that:
Application.UpdateFormatSettings:=False; //by default is TRUE
DecimalSeparator:=your format; //read about sysutils routines
ShortDateFormat:=your format;
Application.Initialize;
.....

you have to include also sysutils...

hope this helps,
//a
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…