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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert a graphic field in a paradox table

Status
Not open for further replies.

nanouche

Programmer
Jul 5, 2000
1
GB
I have a paradox table, I add a graphic field and I would like to link this field with a real image.<br>The problem is : I don't know how to complete that field.
 
Hi!<br>See code:<br>// Image1 have some loaded bitmap<br>// Table1 our paradox table<br><br>Table1.Insert;<br>// fill other fields<br>........<br>// fill graphic field by assigning TBitmap<br>TGraphicField(Table1.FieldByName('IMG')).Assign(Image1.Picture.Bitmap);<br>Table1.Post;<br><br>You can load graphic from file:<br>TGraphicField(Table1.FieldByName('IMG')).LoadFromFile('first.bmp');<br><br>and from other sources ( see TGraphicField in help).<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top