dsimcha: > Thanks. The other part of the question, which all of us seemed to neglected was > how to get the type of elem. See BaseType and BaseType1 in my "templates" module (I think you are talking about BaseType1 here, later you will probably feel the need of BaseType too, so I avoid posting another post later). Bye, bearophile