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 は文字列で実際に使用されている文字数または配列内の要素数を返します。