TChain, Scan() and quit

Hi,

does someone know if there is the way to quit automatically the command Scan() without push “q” at the end?

Thank you
Ciccio

Hi,

Do:tree->SetScanField(0);

Cheers,
Philippe.