ControlType() and library objects

agraham

Expert
Licensed User
Longtime User
I don't know if this is a wishlist item or a bug so I plumped for a bug!

ControlType("object") returns "Other.SwrapObject" for any objects from a library. It would be nice if it returned the Class name from the library - which B4PPC already knows.
 

agraham

Expert
Licensed User
Longtime User
The problem is that this only works on objects from external libraries. If I iterate the controls returned by GetControls(""), which are a mixture of B4PPC native control and library objects it fails on the native controls. Please consider this for the next release. It is impressive that the treatment of external objects is so orthogonal with that of native controls (AddEvent, Control(), AddObject) but this is the one thing that I have found (so far :)) that I can't work round.
 

agraham

Expert
Licensed User
Longtime User
This will be fixed in the next version.
Thank you Erel.

I have already tried that workaround but it is not precise enough identification. I wanted to know the actual type of a control but I can work around it for time being.


You obviously realised what I was after but of course my previous post
it fails on the native controls
Should have been "fails on the library controls"
 
Top