How to Assign an Image to Display at Runtime

Top  Previous  Next

The parameter for an IMAGE control cannot accept a variable; however, you can reassign the image to display a runtime using a property assignment statement.

Insert the following line of source code in the embed point where the assignment will take place.

?Image{PROP:Text} = FileName

Optionally, you can use the DosFileLookup control template to allow a user to select the graphic image from a standard File Dialog.