ui.Form.SetElementImage()

The SetElementImage() method is used to specify a new image for the IMAGE attribute of a static form widget. The accepts two arguments: the name of a static form widget and the new value for the IMAGE attribute that is a file name with the path.

CALL fo.setElementImage ("main_label", "/images/my_image.jpg")

 

The SetFieldImage() method has a synonym - SetElementImage() - that is used for compatibility purpose.