If Not xclass Is Nothing Then
End If

If you mean that you will check whether a value is nothing, you have to use
strings og -1 for numbers.

"Jenny" <j.malloyNO@SPAMx-mial.net> wrote in message
news:017b01c34b62$df71c800$a001280a@phx.gbl...
> Hi Guys,
>
> I have I problem with the "If then" construction.
>
> An object of a class like "xclass.y" is filled with values
> or somethimes also with 'Nothing'.
>
> I like to check this objectin the next 'if then' construction
> wether it has a value different from 'Nothing'. How can I
> check wether the object exists or not in the If construction?
>
>
> Thanks
>
> Jenny