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 中是否有确定动态数组长度的函数?
使用Length函数获取数组的长度:
Length
var ArrayLength: Integer; begin ArrayLength := Length(ArrayOfSomething); ... end;
从这个功能的参考(我强调):
在 Delphi 代码中,Length 返回字符串中实际使用的字符数或数组中的元素数。