Hiya,
I'm trying to create a clock that is displayed on a form in hh:mm:ss format. What I would like to do is instead of using one of the fonts to display the time I'd like to show bitmaps that correspond to the correct digit. I have no problem in getting the required digit using the MID command against the results of the NOW command and assigning it to a variable. What I have also done is import my graphics into 10 hidden images and named them img0....img9. What I'm stuck with is assigning the .picture property of each of the displayed digits to the corresponding 'hidden' image. I've tried various ways of doing this eg.
imgHH1.picture = "img" & varhh1.picture - which I hoped would give me imgHH1.picture = img1.picture (1 being the current hour)
I've also tried concatonating the "img" and the var eg.
HH1 = "img" & varhh1
imghh1.picture = hh1.picture - Again doesn't work.
Could anyone please point me in the right direction with this. I imagine I cannot use variables when I assign properties.
Thanks in advance
Keith
I'm trying to create a clock that is displayed on a form in hh:mm:ss format. What I would like to do is instead of using one of the fonts to display the time I'd like to show bitmaps that correspond to the correct digit. I have no problem in getting the required digit using the MID command against the results of the NOW command and assigning it to a variable. What I have also done is import my graphics into 10 hidden images and named them img0....img9. What I'm stuck with is assigning the .picture property of each of the displayed digits to the corresponding 'hidden' image. I've tried various ways of doing this eg.
imgHH1.picture = "img" & varhh1.picture - which I hoped would give me imgHH1.picture = img1.picture (1 being the current hour)
I've also tried concatonating the "img" and the var eg.
HH1 = "img" & varhh1
imghh1.picture = hh1.picture - Again doesn't work.
Could anyone please point me in the right direction with this. I imagine I cannot use variables when I assign properties.
Thanks in advance
Keith