Página 1 de 1
oObject:IsMethod() and oObject:IsMemberVar()?
Publicado: Mié Oct 03, 2007 2:00 am
por Mahanimann
I can't find any method or function in Xailer or xHarbour that allows one to
check for the existence of a method or ivar in objects. Could anybody tell
me how to do that? (Must be generic methods/functions)
Also, is there anywhere a summary/overview of all the xHarbour object
classes (with methods and ivars) and object functions? I've looked
"everywhere" and the best source so far is the xHarbour helpfile that's
included in the Visual xHarbour demo. (Which by the way is in no way
comparable to Xailer. Oops, just my oppinion.)
Thanks,
Paal
oObject:IsMethod() and oObject:IsMemberVar()?
Publicado: Mié Oct 03, 2007 2:41 am
por Mahanimann
I know about about the oObject:ClassSel() method and could make a function
out of that, but there must be direct way? (i.e. a kind of :IsMethod() and
:IsMemberVar())
Paal
oObject:IsMethod() and oObject:IsMemberVar()?
Publicado: Mié Oct 03, 2007 3:19 am
por Nick Hilder
Howdy
This works
MsgInfo( __objHasMethod( oObjecttoQuery , "MyMethod" ) ) Returns .T./.F.
Or this
MsgInfo__objHasMethod( Self , "MyMethod" ) ) Returns .T.
or for Data use
__objHasData()
Look up Class under the search in the XH help File
Cheers
Nick
"Mahanimann" <
paaldalen@gmail.com> wrote in message
news:[email=
4702e51b@ozsrv2.ozlan.local...]
4702e51b@ozsrv2.ozlan.local...[/email]
>I know about about the oObject:ClassSel() method and could make a function
>out of that, but there must be direct way? (i.e. a kind of :IsMethod() and
>:IsMemberVar())
>
> Paal
>
oObject:IsMethod() and oObject:IsMemberVar()?
Publicado: Mié Oct 03, 2007 12:23 pm
por Mahanimann
> MsgInfo( __objHasMethod( oObjecttoQuery , "MyMethod" ) ) Returns .T./.F.
>
> Or this
>
> MsgInfo__objHasMethod( Self , "MyMethod" ) ) Returns .T.
>
>
> or for Data use
>
> __objHasData()
Thanks, this was exactly what I was looking for. These functions look like
they are internal, and I can't find them documented anywhere (at least at
first glance). Where can I find out about other "hidden treasures" like
these? They are in my oppinion extremely useful, but not documented
anywhere...?
> Look up Class under the search in the XH help File
Yes I have, but the documentation is scattered around with no unifying
"headline". It's a seek-and-try-to-find process.
Again: thanks,
Paal