Hi Fred,
the problem is the BREMenuObject class - the ArrayList is a reference type and has not been initialised.
try this:
class BREMenuObject
{
string menuname;
int level;
ArrayList menuitems = new ArrayList();
}
- Craig
"If you're not prepared to be wrong, you will never come up with anything original."
- Sir Ken Robinson