fn = GETPICT('jpg|bmp|jpeg|', '照片文件')
IF NOT EMPTY(fn) AND FILE(fn)
thisform.pageframe1.page1.olb照片.controlsource= fn
thisform.pageframe1.page1.olb照片.Tag = fn
ENDIF
下面的代码测试通过:
CREATE CURSOR tst (xm c(8),pho g)
INSERT INTO tst (xm) VALUES ("x1")
pic=GETpic()
if file(pic)
APPEND GENERAL pho FROM (pic)
endif
INSERT INTO tst (xm) VALUES ("x1")
pic=GETpic()
if file(pic)
APPEND GENERAL pho FROM (pic)
endif
BROWSE