ohfreak wrote:Keep this in mind:
All IsXXX() commands are expensive operations, because the only way to validate #PB_Any objects is to look at all of them and see if one matches. That won't matter if you have just two libraries open but if we are talking about a few hundred gadgets or images, things look different. So better don't get into that habit.
In fact: A correctly written program should have no need to call any IsXXX() function ever since you can always tell on object creation whether it succeeded or failed, and you know when you free the object so there is no reason for a confusion of weather an object is valid or not. These functions are a debugging tool, nothing else.

I'm glad i used the IsXXX() function here, i had a feeling something like this would happen.

Ok, got it. I can't remember that i read it in the manual, but which case needs than a "IsXXX()-function"? I mean if a object-create-function returns a number, there must be a pb-object behind it, so the IsXXX()-function will return #True? Something i oversee?
MFG PMV