K
kemble
Unregistered / Unconfirmed
GUEST, unregistred user!
判断一个TButton对象(mybtn)有没有被释放,下面的语句是不是一样,哪个更确切??
1:
if not Assigned(mybtn) then
{do something...}
2:
if mybtn = nil then
{do something...}
多谢!!
1:
if not Assigned(mybtn) then
{do something...}
2:
if mybtn = nil then
{do something...}
多谢!!