Delphi中,将W1048的TFormatSettings的string类型转换是否安全?
- 内容介绍
- 文章标签
- 相关推荐
本文共计417个文字,预计阅读时间需要2分钟。
我正在将一个旧项目迁移到Delphi XE,我在代码中遇到了一个警告。这是我的函数代码:
pascalfunction RemoveThousandSeperator(Text: String): String;Var P: Integer;begin if length(Text) > 3 then begin P :=Pos(FormatSettings.ThousandSeparator, Text); end;end;
这段代码的目的是去除字符串中的千位分隔符。
本文共计417个文字,预计阅读时间需要2分钟。
我正在将一个旧项目迁移到Delphi XE,我在代码中遇到了一个警告。这是我的函数代码:
pascalfunction RemoveThousandSeperator(Text: String): String;Var P: Integer;begin if length(Text) > 3 then begin P :=Pos(FormatSettings.ThousandSeparator, Text); end;end;
这段代码的目的是去除字符串中的千位分隔符。

