Returns the length of the variant array for the specified dimension.
function VarArrayLength(const value: Variant; dim: Integer): Integer;