FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour "Name" of TOLE
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
"Name" of TOLE
Posted: Wed Nov 30, 2022 12:39 PM
hi,

when using
Code (fw): Select all Collapse
   FWLOG hb_valToExp( oObject)
i got
'__itemSetObj( {{"__HOBJ", <pointer>}}, {{"TOLEAUTO",}} )'
how to get "more" Information about it :?:
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: &quot;Name&quot; of TOLE
Posted: Fri Dec 02, 2022 02:20 PM

To know the name

? oObject:cClassName

Regards



G. N. Rao.

Hyderabad, India
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: &quot;Name&quot; of TOLE
Posted: Fri Dec 02, 2022 02:50 PM

Dear Jimmy,

Please use FWH\samples\olebrow.prg to inspect the OLE objects

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: &quot;Name&quot; of TOLE
Posted: Fri Dec 02, 2022 03:34 PM
hi,
nageswaragunupudi wrote:To know the name
? oObject:cClassName
thx for Answer.
Code (fw): Select all Collapse
   xFolder := aSelect[ ID_Folder ]
   xName := aSelect[ ID_Name ]
   xLevel := aSelect[ ID_Level ]

FWLOG xFolder
FWLOG oFolderItem:cClassName
FWLOG oTreeNext

   DoTreeRecursiv( oFolderItem, xLevel + 1, .F., .F., .F., .F.,oTreeNext )
02.12.2022 16:24:51: DOTREEACTION( 0 ) xFolder = TTVITEM
02.12.2022 16:24:51: DOTREEACTION( 0 ) oFolderItem:cClassName =
02.12.2022 16:24:51: DOTREEACTION( 0 ) oTreeNext = TTVITEM
as that CODE is working there must be a "Name" but i got only "empty"
greeting,

Jimmy
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: &quot;Name&quot; of TOLE
Posted: Fri Dec 02, 2022 03:36 PM
hi Antonio,
Antonio Linares wrote:Please use FWH\samples\olebrow.prg to inspect the OLE objects
WOW, all CLSID in XBROWSE :D

but it is not the same as i use
Code (fw): Select all Collapse
   oShell := CreateObject( "shell.application" )
   IF NIL <> oShell
      oFolder := oShell:NameSpace( CSIDL_DRIVES )
i do work with "virtual Folder" which i get from "shell.application"

p.s. as CODE is working now i do not need to "check" it any more
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: &quot;Name&quot; of TOLE
Posted: Fri Dec 02, 2022 06:14 PM

BTW cClassName is only for OLE objects.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: &quot;Name&quot; of TOLE
Posted: Mon Dec 05, 2022 03:14 AM
hi,
nageswaragunupudi wrote:BTW cClassName is only for OLE objects.
i understand

my Question for "Name" was wrong, it must be "Interface"

i do use
Code (fw): Select all Collapse
   oShell := CreateObject( "shell.application" )
so it is not a Fivewin CLASS Object which i can "identify"

but when using wrong Object and crash Errorlog "just" say TOLEAUTO ...

so i ask for Interface-"Name" to understand Errorlog
greeting,

Jimmy

Continue the discussion