Harbour equivalent of xHarbour function GetActiveObject()

Harbour equivalent of xHarbour function GetActiveObject()

Postby anserkk » Tue Feb 24, 2009 5:46 am

Hi,

What is the Harbour equivalent of xHarbour function GetActiveObject()
To make ot more clear :-
In xHarbour we have the function GetActiveObject(). Is there a similiar function in Harbour which does the same.

Code: Select all  Expand view
#ifdef __XHARBOUR__

   TRY
      oExcel   := GetActiveObject( "Excel.Application" )
   CATCH
      TRY
         oExcel   := CreateObject( "Excel.Application" )
      CATCH
         MsgAlert( "Excel not installed" )
         return Self
      END
   END

#else
   oExcel   := TOLEAuto():New( "Excel.Application" )
#endif


Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Harbour equivalent of xHarbour function GetActiveObject()

Postby Antonio Linares » Tue Feb 24, 2009 9:41 am

Anser,

The same function GetActiveObject() is available in Harbour too
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour equivalent of xHarbour function GetActiveObject()

Postby anserkk » Tue Feb 24, 2009 10:04 am

Mr.Antonio,

Thankyou for the information.

Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests