Hi all,

Using VB6 or VBScript:

What is the "best practice" method for checking if a property exists or
not? For instance oUser.AccountExpirationDate.

Thanks.
--
Tim

Re: How to check for non-existant property by C

C
Fri Aug 20 21:31:11 CDT 2004

well, you could always

on error resume next
var = object.Property
if err.Number <> 0 then
property does not exist
err.Clear
else
property exists
end if
on error goto 0

"Tim Munro" <Plasmamage@ColdMail.com> wrote in message
news:uXItLc8gEHA.3388@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> Using VB6 or VBScript:
>
> What is the "best practice" method for checking if a property exists
or
> not? For instance oUser.AccountExpirationDate.
>
> Thanks.
> --
> Tim
>
>