Example: lr.missing

The following example returns true when the variant is not null.

if(ObjectCheck(lr.missing))

lr.output_message("lr.missing is "+lr.missing.ToString());

else

lr.output_message("lr.missing is null object");

 

public bool ObjectCheck(object obj)

{

if(obj==null)

return false;

else

return true;

}