checking null element - newbie

  • Thread starter Thread starter Mr. x
  • Start date Start date
M

Mr. x

Hello,
How can I check if an object elemnt is not assigned (null)

in javascript I did :
if (myobj == null)
{
do something ...
}

What is the syntax in VB.NET (server side).
Thanks :)
 
Hi Mr,X
It seems they are back.
How can I check if an object elemnt is not assigned (null)

in javascript I did :
if (myobj == null)
{
do something ...
}

If myobj is Nothing then
do something
end if
And assigned is
If Not myobj is Nothing then
do dometing
end if
I hope this helps a little bit.
Cor
 
Mr. x said:
in javascript I did :
if (myobj == null)
{
do something ...
}

What is the syntax in VB.NET (server side).

If myobj Is Nothing Then
' do something else ...
End If

HTH,
Phill W.
 
Back
Top