>Our company is using an MRP system devloped by a third party. I am using a middleware object, that uses OLE Automation for inputing and extracting data. My question in upon trying to add a Bill Of Material structure for example, if an error occurs on the server side of the house an "IDISPATCH" error occurs stating tyhe nature of the problem that has occured. I want to be able to cature the error being raised from that system through VFP, and take appropriate measures to hanle these when they occur.
>
>How do you raise these com server errors to VFP. I am using CREATEOBJECT(......) to create the instance of the server.
Have you looked at COMRETURNERROR()?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer