PictureBox 无法清空? :( 请大家指点!
//清空
setnull(pic)
p_2.setpicture(pic)
*********************目的:清空显示. 界面上没反应啊,还是上一副图片.怎么办呢?
//显示
selectblob photo into :pic from vehicle where licenseplate = :str_ID;
if sqlca.sqlcode <> - 1 then
if len(pic)> 0 then
p_2.setpicture(pic)
else
messagebox("显示图片","图片为空")
end if
else
messagebox("显示图片错误",sqlca.sqlerrtext)
end if