Skip to content

Float type properties gives exception when the system locale has ',' for decimal point #1

@DanyMarmur

Description

@DanyMarmur

To avoid getting:

Error while converting C:\afile.dfm. Exception EConvertError: '0.020833333333333330' is not a valid floating point value

When running on a locale like Swedish (where decimal point is a comma) line 248 in DFMJSON.pas could be changed to:

parser := TParser.Create(dfm, TFormatSettings.Create('en-US'));

Regards,

/Dany

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions