Char and Chr in Delphi

Posted by JamesB on Stack Overflow See other posts from Stack Overflow or by JamesB
Published on 2010-03-19T10:33:27Z Indexed on 2010/03/19 10:41 UTC
Read the original article Hit count: 213

Filed under:
|

The difference between Chr and Char when used in converting types is that one is a function and the other is cast

So: Char(66) = Chr(66)

I don't think there is any performance difference (at least I've never noticed any, one probably calls the other).... I'm fairly sure someone will correct me on this!

Which do you use in your code and why?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about char