As well as typos, etc, look for indentation errors. The offending line might not be part of the scope you think it's part of. -- Greg Ewing, Computer Science Dept, University of Canterbury, Christchurch, New Zealand To get my email address, please visit my web page: http://www.cosc.canterbury.ac.nz/~greg