I am attempting to create a canvas that will change what picture is displayed depending on a global variable, of which is decided earlier. I have it set up so that the the number selected for the variable (integer) is the name of an image. However, I cannot figure out how to make the canvas display the image, as it comes up with this error:
Parameter “image” expects class Picture, but this is class Canvas.
g.DrawPicture(pcard, 0, 0, 50, 66, 0, 0, 632, 761)
pcard is the global variable
Any assistance would be appreciated, or an alternative way to accomplish the same result would also help as I am new to Xojo.
Thanks!