I assigned a code to a click event of an object which I create programmaticaly. This object is a picture. There can be up to 6 of this objects.
How can I determine (in the PictureClick evnet), which object has been clicked? VFP seems to remeber the name, only of last object.
Any ideas?
Code:
.
.
.
thisform.AddObject(i_pic,"Image")
WITH EVALUATE([thisform.]+i_pic)
.visible = .T.
.width= 84
.height= 84
.stretch= 1
.top= thisform.k_image.top
.left= thisform.k_image.left+90
.Picture = AllTrim(mPath)
.name = i_pic
ENDWITH
BINDEVENT(EVALUATE([thisform.]+i_pic),[Click],thisform,[PictureClick])
.
.
.
Any ideas?