Consultor Eletrônico



Kbase 15595: Clearing a previously loaded image using load-image
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Clearing a previously loaded image using load-image

Customers sometimes want to re-use an image name at run-time. For
example, a customer might be calling image software in a UNIX
command that replaces a file called myimg.bmp with a new image.
When you try to load the new image, with the same file name,
PROGRESS uses the image by that name it finds in memory. To force it
to reload the image from disk, you can use the LOAD-IMAGE method with
a null parameter. So the code would look as follows:

REPEAT:
UNIX "command that replaces myimg.bmp with a new image".
i-status = object-name:LOAD-IMAGE("").
i-status = object-name:LOAD-IMAGE(myimg.bmp).
.
.
END.

Progress Software Technical Support Note # 15595