Unrelated observation - if you want to check for an object existance, use
vartype(loObject) = 'O' and not type('loObject') = 'O' since the later check doesn't test if the object is Null or not.
>
>I've have the pop3emailclass working and am happy with it, thanks.
>
>I do have a problem though; I cant get the connection to deconnect.
>
>In the screen destroy method I have the following code:
>
>IF TYPE('loMail')='O' AND loMail.lConnected
> loMail.destroy()
>ENDIF
>
>Get "Unknown member OSOCKET" for an error. Get same error when I Quit Foxpro without calling destroy!
>
>Any ideas?
If it's not broken, fix it until it is.
My Blog