Compiler is telling you that you cannot return an untyped dynamic array. You can declare f.i.
type TStringArray = array of string;
and you can return a TStringArray
from the function. Note that, a variable declared as TStringArray
will not be compatible with a similarly declared but differently typed array, for instance with type TOtherStringArray = array of string
.