I have a problem with using a string as input for a picture.
Here is the situation simplified:
I have two pictures dropped into the project that are called image_new.png and image_old.png
I also have 3 strings:
string_a = “image”
string_b = “_new”
string_c = “_old”
Depending on the situation I need to a Picture(image_new) or Picture(image_old), but these picture names should be build using the string names.
I know it is easier to do when loading the image from disk programmatically, but that is not an option. I need them from the project pre-loaded (dropped).
In short terms, is there any possibility to get this working:
Dim p As Picture = Picture(name As String)