To get original objects from TObjArray

Wei Xie (xiewei@clever.weizmann.ac.il)
Sat, 20 Mar 1999 17:44:07 +0200 (IST)


Dear ROOTers,

I'v got a TObjArray which contains 100 TGTextButtons.
I'm using the following lines to get back all TGTextButtons and
take them as input of other functions.
------------------------------------
for(int i=0; i<100; i++)
TGTextButton *tmp = (TGTextButton *)(StatusButtonArray->At(i));
-----------------------------------------

The error messages is :

CC: "ControlPanel.cxx", line 87: error: jump past initializer (did you
forget a '{ }'?) (1580)
*** Error exit code 1

Does it mean I can not use TObjArray like that ?
If not, what's the best way to do the same thing ?

Sincerely yours
Xie