Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display JPG image in 4GL

Status
Not open for further replies.

skkoh

IS-IT--Management
Jul 7, 2002
14
MY
Hi,

Need help on Informix Dynamic 4GL. I am trying to display
image on 4gl but do not know how to.

Os Windows NT
Database Informix IDS 7.3

D:\image\ < store image folder >

How to code to display the image in client screen.
Do 4gl support bmp, jpg?

Pls help Urgent.

Tks/skkoh


 
Here is an example of a function

FUNCTION bmp_display(description)
DEFINE description LIKE stock.description
DEFINE bmp_file char(30)
DEFINE curwin char(18)
LET bmp_file = bmp_lookup(description)
IF bmp_file IS NOT NULL THEN
Let curwin = window::getoption(&quot;name&quot;)
CALL bmp_openwin()
DISPLAY bmp_file to bmpfld
CALL window::current(curwin)
ELSE
CALL bmp_closewin()
END IF
END FUNCTION [bmp_display}

Here is how on a Form

DATABASE FORMONLY
SCREEN
{
[f1 ]





}
ATTRIBUTES
f1 = FORMONLY.bmpfld, WIDGET = &quot;BMP&quot;;
END
Dodge20
If it ain't broke, don't fix it.
 
Hi dodge20,

I have try your example but i still cannot display the image

Winnt 4.0 IDS 7.31

Informix installation dir C:\informix
Image store in D:\Image
Could you pls help on this issue.

Tks/skkoh


 
Are you getting an error message, or is nothing showing up. Please explain what the problem is.

Jay Dodge20
If it ain't broke, don't fix it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top