You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pixlib
Hello guys!
I get a PXIndexOutOfBoundsException on a PXGrid even if I just call
the function isGridCoords.
This is not very convenient as if it returns true, I don't really
care, I want to know when I'm out of bound without my code to
break ...
Is it possible to change that to return a boolean in every case?
Cheers!
public function isGridCoords(coords : Point) : Boolean
{
if ( !( coords.x >= 0 && coords.x < vSize.width && coords.y >= 0 &&
coords.y < vSize.height ) )
throw new PXIndexOutOfBoundsException(coords + " is not a valid
grid coordinates for " + this, this);