开发者

Long into to string - is StrToInt() safe?

开发者 https://www.devze.com 2023-01-30 14:26 出处:网络
I have a long int which represents a Unxi timestamp and want to use a string re开发者_如何学编程presentation of it.

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

精彩评论

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

关注公众号