Jump to content
Software FX Community

Getting PixeltoValue to work in VFP


User (Legacy)

Recommended Posts

Anyone know how to get PixelToValue working with Visual Foxpro?

There doesn't seem to be an example in the VFP examples and I keep getting

OLE Type mismatch results.

Thanks,

Tom Johnson

FUNCTION DRAGDROP()

LPARAMETERS oSource, nXCoord, nYCoord

LOCAL xOut

LOCAL yOut

xOut=0

yOut=0

*xout=REPLICATE(CHR(0),4) && tried it and it doesnt work

*yout=REPLICATE(CHR(0),4)

*ChartName.PixelToValue([in] double x, [in] double y,

* [out] long *xValue, [out] long *yValue,CfxAxisIndex nYAxis);

this.pixeltovalue(nXCoord,nyCoord,@xout,@yout,0)

? VAL(xout),VAL(yout)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...