Displaying an image coded by a parameter
Posted: Sun Feb 28, 2016 6:22 pm
Hello
I have a variable
with intended integer range from 1 to 3.
I have three images stored in files, named
I have a control to display the image of my choice on my card.
Please provide a piece of code to display either image1.jpg or image2.jpg or image3.jpg acccording to the value of tImageID.
It could be one control with 3 interchangeable images or 3 controls displayed on same place - I don't care much, though the first solution seems to be more elegant.
The essence is, I just want to display (on the same place) a proper image according to the value of tImageID.
Please advise.
Best,
greg falda
I have a variable
Code: Select all
tImageID
I have three images stored in files, named
Code: Select all
image1.jpg, image2.jpg, image3.jpg
Please provide a piece of code to display either image1.jpg or image2.jpg or image3.jpg acccording to the value of tImageID.
It could be one control with 3 interchangeable images or 3 controls displayed on same place - I don't care much, though the first solution seems to be more elegant.
The essence is, I just want to display (on the same place) a proper image according to the value of tImageID.
Please advise.
Best,
greg falda