Sorry, I've no other suggestions.
>Sergey,
>
>Tried that (and just retried). Same result.
>
>If I take out the @ symbol, the error isn't raised...but xout and yout aren't changed by the call either.
>
>xout=0
>yout=0
>this.pixeltovalue(nXCoord,nyCoord,xout,yout,0) && doesn't error -- but doesn't change xout or yout either.
>
>
>this.pixeltovalue(nXCoord,nyCoord,@xout,@yout,0) && errors with OLE Type mismatch
>
>Thanks,
>
>Tom
--sb--