Jump to content
Software FX Community

Getting PixeltoValue to work in VFP


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...