TObjArray::GetLast()

From: Colin Partridge (stack@lineone.net)
Date: Wed Sep 15 1999 - 02:25:48 MEST


Firstly thanks to those who gave me advice on my last problem.

I have a function which has a TObjArray*  as a parameter.  Call it array.
In the function body I do

 TObjArray* new_array = new TObjArray(*array);

which seemed to work perfectly with everything I used it for until I tried

new_array->GetLast();

which returned -1 implying that the array was empty. However on the same
array the function

new_array->GetEntries();

returned the correct number of items.  Can anyone suggest a reason for this.

Thanks
--
Colin Partridge
stack@lineone.net
http://website.lineone.net/~stack/



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET