use*_*065 3 delphi integer delphi-2009 ansistring
IntToStr()函数返回现在是Unicode的字符串.我想转换为AnsiString.我可以AnsiString(IntToStr(I))安全使用吗?
当然.或者你可以使用IntToAnsiString(鲍勃博士写的):
function IntToAnsiStr(X: Integer; Width: Integer = 0): AnsiString;
begin
Str(X: Width, Result);
end;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7277 次 |
| 最近记录: |