create a new unknown type?

BlitzMax Forums/BlitzMax Programming/create a new unknown type?

What do you mean? The function wouldn't be able to modify the field if it doesn't know what the type is. You could use reflection or have all your objects inherit from a base class.