Click to See Complete Forum and Search --> : Help with Paintpicture method


February 21st, 2000, 10:45 PM
I want to use the paintpicture method but vb is giving me errors. What is wrong with this statement? When I run it, vb says "expected variable or function". Why is this? Is there a better way to output graphics?

Picture1.PaintPicture(PictureClip1.GraphicCell(W), 2, 3)

Thanks.

fard0wn@hotmail.com

Cakkie
February 21st, 2000, 11:57 PM
In this statement

Picture1.PaintPicture(PictureClip1.GraphicCell(W), 2, 3)

vb will interpret paintpicture as a function, not a sub. A function however requires a return value. My advise is to remove the braces () from the paintpicture.

So:
Picture1.PaintPicture(PictureClip1.GraphicCell(W), 2, 3)
should be changed into
Picture1.PaintPicture PictureClip1.GraphicCell(W), 2, 3


Tom Cannaerts
slisse@planetinternet.be

The best way to escape a problem, is to solve it.