dobby

dobby

  • NA
  • 78
  • 0

Method return class list, no idea how to use it effectively

Jul 8 2008 5:03 PM
hi all, i posted here eirlier about trying to get a method to return a list of a Class (list<T>).

i have managed to get it working, thanks to your help however now a new problem has spawned.

if i go (from another class)
instanceofMyClass.methodName();
where the method is supposed to return list<T>.

however i am left wiht the myClass.methodName, but no way to get the data from it, when i changed the method to return int or string it works fine, simply inputting into a msgbox. however i seem unable to extract that data from thelist, i was expecting to be able to do:
instanceofMyClass.methodName[].variableinT;
and be able to index the connents. except ofcourse i cant do that at all.

thanks for any help.

Answers (1)