Length (Compiler Magic Function)
From The Oxygene Language Wiki
This is a Language topic about Oxygene
Language Topics Introduction | Structured Overview | Grammar | Keywords | Functions
Length can be used to determine the length of arrays, collections (anything that implements ICollection or ICollection<T>) and strings.
For nil values, 0 will be returned. This makes handling nil values easier, if you only care for the length.
var strLen1 := length("abc"); // 3 var strLen2 := length(default(String)); // 0 var myArray : array of Integer; var arrLen1 := length(myArray); // 0 myArray := [1, 2, 3]; var arrLen2 := length(myArray); // 3