Thanks Ashley. I was trying to write "generic" code, e.g. have an event sheet that creates a "family", and depending on where I include this event sheet (i.e. depending on some global variable I set previously), the CreateObject would choose a particular object type from the family. I mean, I was trying to avoid passing the actual object type (and have a lot of "if"s in the object sheet which does the creation).
The approach/workaround suggested by cacotigon and Yann actually works. Plus, I found out today about the function plugin which greatly simplifies my work. Sure, it would be nice if I could somehow tell the CreateObject, when passing the Family, what object type I want (by passing some index, or some string perhaps, or by passing some ad-hoc "tag" that would be set on the object type when it gets added to the family). But for now I can live without <img src="smileys/smiley1.gif" border="0" align="middle" />
Thanks.
Geo