开发者

Long into to string - is StrToInt() safe?

I have a long int which represents a Unxi timestamp and want to use a string re开发者_如何学编程presentation of it.

Using IntToStr() works, but worries me because it doesn't say long. Maybe I should use sprintf() instead?


I believe you meant IntToStr() rather than StrToInt(), and it appears to be overloaded and therefore safe. For the other way around there is StrToInt64().

Delphi Basics : IntToStr command

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜