B
Brad Pears
I want to check to see if a particular object exists using vb.net 2005.
I have a class called clsContract. When the user clicks the 'New Contract'
button, I want to check to see if a clsContract object already exists and if
so what the state of that object is before doing anything else.
I thought I could use ...
if IsNothing(clsContract) then
'somc code
else
' some code
endif
BUT
"clsContract" is underlined and the error says
"clsContract is a type and can not be used as an expression"
How do you check to see if an object exists?
Thanks, Brad
I have a class called clsContract. When the user clicks the 'New Contract'
button, I want to check to see if a clsContract object already exists and if
so what the state of that object is before doing anything else.
I thought I could use ...
if IsNothing(clsContract) then
'somc code
else
' some code
endif
BUT
"clsContract" is underlined and the error says
"clsContract is a type and can not be used as an expression"
How do you check to see if an object exists?
Thanks, Brad