Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Delphi 有函数System.copy,StrUtils.MidStr它们都从string. 这两个功能有区别吗?
System.copy
StrUtils.MidStr
string
如果是这样,有什么区别?我应该什么时候使用每一个?
确实,没有区别:MidStr()使用Copy(). 对于字符串来说,因为Copy()也可以用于MidStr()不适合的数组。
MidStr()
Copy()
(我个人认为StrUtilsunit发布的一些例程是为熟悉VB的人准备的。)
StrUtils