I use BGGET to do this. ID=BGGET(Layer,X,Y[,Coordinate system flag]) IF ID==2 THEN PRINT "worked!" Hope this helped :)