In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Is there a way to get more properties from WIN_OLEAUTO object?

Xailer professional forum in English
Responder
DC
Mensajes: 122
Registrado: Lun May 16, 2011 6:06 pm

Is there a way to get more properties from WIN_OLEAUTO object?

Mensaje por DC »

Hi,

I'm working on an Outlook 365 email retrieval project, using CreateObject("Outlook.Application").

It's going fine, it's based on something I built in Harbour a couple of years ago.

I'm just wondering if there's a way to get more debugger information from some of the objects.


So for example, after executing this:

Código: Seleccionar todo

TRY
   Outlook_o = CreateObject( "Outlook.Application" )

CATCH
   Alert( "Problem generating Outlook object " + Ole2TxtError() )
   Outlook_o := NIL
   Return .f.
END



IF Outlook_o != NIL

     NameSpace_o := Outlook_o:GetNamespace("MAPI")
     NameSpaceFolders_o := NameSpace_o:Folders
     Folders_n := NameSpaceFolders_o:Count

EndIf


The Outlook and Namespace objects contain only the basic properties __CARGO, __HOBJ, __HOBJENUM, __HSINK.

Aside from assigning the needed properties into variables, as in above looking at the Count property of NameSpaceFolders_o

Código: Seleccionar todo

Folders_n := NameSpaceFolders_o:Count
, is there any way to examine these WinOle properties in the Xailer debugger, by double-clicking on the specific object?
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: Is there a way to get more properties from WIN_OLEAUTO object?

Mensaje por jfgimenez »

Hi Dwayne,

I'm affraid it's not possible, sorry. Well, in fact it could be possible, but TOleAuto was not designed to work that way, so in practice it's not possible.

TOleAuto uses "dynamic binding" to call OLE servers. That is, when you write "oObj:cProperty", TOleAuto just check if "cProperty" is a valid member for that "oObj" OLE server, and then calls it. But it has no list of properties the debugger can look into to show you all properties.
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
DC
Mensajes: 122
Registrado: Lun May 16, 2011 6:06 pm

Re: Is there a way to get more properties from WIN_OLEAUTO object?

Mensaje por DC »

I understand, thanks José.


Regards,


jfgimenez escribió: Sab Jun 18, 2022 2:17 pm Hi Dwayne,

I'm affraid it's not possible, sorry. Well, in fact it could be possible, but TOleAuto was not designed to work that way, so in practice it's not possible.

TOleAuto uses "dynamic binding" to call OLE servers. That is, when you write "oObj:cProperty", TOleAuto just check if "cProperty" is a valid member for that "oObj" OLE server, and then calls it. But it has no list of properties the debugger can look into to show you all properties.
Responder