FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error on OLEINVOKE()
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Error on OLEINVOKE()
Posted: Thu Jun 14, 2007 07:51 PM

Hello,

I use OLE to make a connection between my application and Word.

If the connection is broken, I got an error when using OLEINVOKE().

Is there a way to prevent this error to happen ?

If yes, how ?

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error on OLEINVOKE()
Posted: Thu Jun 14, 2007 08:01 PM
Michel,

You could use a:
TRY
   OleInvoke( ... )
CATCH
   MsgAlert( "there is an error" )
END
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion