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
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.
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.
oObject:IsMethod() and oObject:IsMemberVar()?
-
- Mensajes: 216
- Registrado: Dom Sep 23, 2007 11:08 pm
-
- Mensajes: 216
- Registrado: Dom Sep 23, 2007 11:08 pm
oObject:IsMethod() and oObject:IsMemberVar()?
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
out of that, but there must be direct way? (i.e. a kind of :IsMethod() and
:IsMemberVar())
Paal
-
- Mensajes: 328
- Registrado: Mar Nov 21, 2006 2:10 am
oObject:IsMethod() and oObject:IsMemberVar()?
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
>
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
>
-
- Mensajes: 216
- Registrado: Dom Sep 23, 2007 11:08 pm
oObject:IsMethod() and oObject:IsMemberVar()?
> 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
>
> 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