assigned 判断指针是否为空,空返回假
ptr:=GetMem(SizeOf(testrecord));
if not Assigned(ptr) then
begin
OutputDebugString(‘ nil‘);
end;
2023-10-29 10:38:40
assigned 判断指针是否为空,空返回假
ptr:=GetMem(SizeOf(testrecord));
if not Assigned(ptr) then
begin
OutputDebugString(‘ nil‘);
end;