If I have cvsA and cvsB as Canvases and wish to pass them in turn to a Sub that draws on each, can I use...
Sub Draw(fred)
Rect1.Initialize(x,y, etc)
fred.DrawRect(Rect1, etc)
...
End Sub
such that fred can be either canvas? Not being the result of an action I cannot distinguish by using sender.
Thank you
Sub Draw(fred)
Rect1.Initialize(x,y, etc)
fred.DrawRect(Rect1, etc)
...
End Sub
such that fred can be either canvas? Not being the result of an action I cannot distinguish by using sender.
Thank you