Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Syntax to check if Integer property has been set (easy one)


Message #1 by "PParker" <pparker49@h...> on Wed, 24 Apr 2002 23:02:17
Hallo All,


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:

	if Object.Description = ""


My question is, what would be the equivalent syntax for the Integer 
property "Type"?  I tried:

	if IsDBNull(Object.Type)

and

	if IsNothing(Object.Type)

but both times I just got compiler errors (Name 'IsDBNull' is not 
declared / Name 'IsNothing' is not declared).


Any help appreciated,



PP

  Return to Index