Hallo All,<BR><BR><BR>A compiled object I am making has a string property "Description" and an Integer property "Type". The syntax to check if the string property has been set is easy:<BR><BR> if Object.Description = ""<BR><BR><BR>My question is, what would be the equivalent syntax for the Integer property "Type"? I tried:<BR><BR> if IsDBNull(Object.Type)<BR><BR>and<BR><BR> if IsNothing(Object.Type)<BR><BR>but both times I just got compiler errors (Name 'IsDBNull' is not declared / Name 'IsNothing' is not declared).<BR><BR><BR>Any help appreciated,<BR><BR><BR><BR>PPhave you tried:<BR><BR>IF NOT Object.Type THEN<BR><BR>if that doesn't work, set Type = 0 on creation...<BR><BR>KarlHi,<BR><BR>Sadly, <BR><BR>IF NOT Object.Type THEN <BR><BR>didn't work! Can you explain what you mean by: "if that doesn't work, set Type = 0 on creation..." ?<BR><BR>Thanks,<BR><BR>PPtry this<BR><BR>If Not datareader.IsDBNull(datareader.GetOrdinal("column_name"))<BR> .........<BR> .........<BR> .........<BR>End If