Skip to Content

How can I show an animated gif with isCOBOL?

Estimated Reading Time: 1 Minutes

To make this you can use the label control with the title in an HTML code.

For example

string '<html><img src="file:'   delimited by size
       path-gif                  delimited by trailing space
       '"></img></html>'         delimited by size
       into html-title.

Where "path-gif" is the path of the gif image and tit-html is the variable used for the gif's title.

Into Application/Server environment the HTML code is rendered on the client, so we need to have the gif image on the client.

To make this we can use the "C$COPY" routine to copy the image from the server to the client.

Attached below is a Cobol sample program showing the code used to create the HTML code, and instructions on how to copy the image from the server to the client.

How can I show an animated gif with isCOBOL?
  • Attached Files
  • lb.gif (8.83 KB) 12
  • animgif.cbl (4.42 KB) 10