>
> Steve is it Work for u?
>
>
>
> LOCAL loError,loObject,lFoundError as Logical
> TRY
> loObject = CREATEOBJECT("xx.xx")
>
> Catch To loError
> lFoundError = .T.
>
> ENDTRY
> IF lFoundError
> =MESSAGEBOX("Register the Control First",0+64,"Info")
> ENDIF
>
>
>
> Anil
>
My BlogThanks Anil, I was saving that as last a resort (shoulda mentioned it). I hate to create an "error state" unless there is no other way to test and since the object is already part of the form I would be calling CREATEOBJ just to either trigger error or throw away object so was hoping for something a little more elegant
Thanks for the pointer in your other message to the DLL register fnctino, I will give them a look see
Steve Dingle
http://weblogs.foxite.com/SteveDingle/www.dsbusinesssolutions.co.uk