M
mafan
Unregistered / Unconfirmed
GUEST, unregistred user!
程序1:
image1.Picture.LoadFromFile('c:/1.bmp');
if image1.Picture=nil then
form1.Caption:='nil'
else
form1.Caption:='not nil';
程序2:
image1.Picture:=nil;
if image1.Picture=nil then
form1.Caption:='nil'
else
form1.Caption:='not nil';
两个结果都是'not nil'
如何判断TImage or TBitmap里没有图象信息?
image1.Picture.LoadFromFile('c:/1.bmp');
if image1.Picture=nil then
form1.Caption:='nil'
else
form1.Caption:='not nil';
程序2:
image1.Picture:=nil;
if image1.Picture=nil then
form1.Caption:='nil'
else
form1.Caption:='not nil';
两个结果都是'not nil'
如何判断TImage or TBitmap里没有图象信息?