求助:在VFP表格内显示以二进制保存的图片字串的图片,关健语句是什么。
我的一个表内 temp 内有一个字段 pict ,类型是M型。OutputFile='D:\ABC.JPG'
replace pict with filetostr(OutputFile) &&将文件保存为字串
我在表格GIRL1的column1 内添加了一个 image1 控件
然后怎样才能在表格COLUMN1内显示这个这个图片呢?是不是不能用这个image1控件
2022-07-13 16:51
2022-07-13 16:54
[此贴子已经被作者于2022-7-13 17:51编辑过]
2022-07-13 17:47
2022-07-13 20:02
2022-07-14 11:37
2022-07-14 15:13
程序代码:
DEFINE CLASS myform as Form
ADD OBJECT grid1 as grid
PROCEDURE grid1.init
this.RowHeight = 100
this.column1.RemoveObject("text1")
this.column1.AddObject("image1","myImage")
this.column1.sparse = .F.
ENDPROC
ENDDEFINE
DEFINE CLASS myImage as Image
Stretch = 1
Visible = .T.
PROCEDURE BackStyle_ACCESS
this.picture = ppath
RETURN this.BackStyle
ENDPROC
ENDDEFINE
2022-07-14 16:25
2022-07-14 16:35
2022-07-14 21:04
2022-07-14 21:15