Guest_imported
New member
- Jan 1, 1970
- 0
I'm trying to make a program move an image to new coordinates, but using the caption of a static text box as the name of the image (because it needs to be changed, and writing out if statements for 100 images would be completly too time consuming)...
((TImage*)Let1->Caption)->
This is the code idea, I have the static text box "Let1" given a caption by another form. I want the resulting caption to be used as the name of the image (the images on this particular form have the correct names). When trying this, I get the error Cannot cast from AnsiString to TImage *. How can I get around this, without massive amounts of typing???
((TImage*)Let1->Caption)->
This is the code idea, I have the static text box "Let1" given a caption by another form. I want the resulting caption to be used as the name of the image (the images on this particular form have the correct names). When trying this, I get the error Cannot cast from AnsiString to TImage *. How can I get around this, without massive amounts of typing???