COMRETURN ERROR - There is a sample implementation in downloads "ADO Query Analyzer"
HTH T
>How do I return an error from the Init Event of my COM created in VFP?
>
>If i put RETURN .F. in the INIT event, The COM client will receive this error.
>
OLE error code 0x80004005: Unspecified error.>
>I have also tried COMRETURNERROR() but i get this error message
>
Feature is not available.>
>Any other way to return an error to my COM Client?
>
>Need help on this.
>
>THANKS
Imagination is more important than knowledge