padders wrote:Yeah, I saw that.. :-)
Well at least we're all consistent :-D
Cannot recall ever using the +.last()+ and +.first()+ methods for normal array processing. Using
if i = rec_t.Count then ...
.. is a lot safer as it deals with array variables with no value (null) just fine. No need for additional code to check for a null state prior to entering the FOR loop.
for i in 1..array.Count loop ..