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>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.