[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

How may I know when a Class is parent or child or nothing from oth

Evelio

11/11/2005 9:15:00 PM

Is there any method to know if a class is parent or child from another class?
How may I know it.

I believe I saw some kind of function or static method for this while
debugging. It was something like "isClassParentOrChild(Class1, Class2,..)"
do not remember exactly but now that I need it, I just can't find it.

Thank you in advance.
2 Answers

Evelio

11/11/2005 10:47:00 PM

0

Yes there is a way of doing this.
Take a look at the Axaptamedia forum
http://www.axaptapedia.com/index.php/Determining_if_an_object_is_...
there you will find the answer.

"Evelio" wrote:

> Is there any method to know if a class is parent or child from another class?
> How may I know it.
>
> I believe I saw some kind of function or static method for this while
> debugging. It was something like "isClassParentOrChild(Class1, Class2,..)"
> do not remember exactly but now that I need it, I just can't find it.
>
> Thank you in advance.

Evelio

2/22/2006 5:23:00 PM

0

Example:
if (! SysDictClass::isSuperclass(classIdGet(caller),

ClassNum("ReportSalesAnalysis")))
throw error::wrongUseOfFunction(funcName());


"Evelio" wrote:

> Yes there is a way of doing this.
> Take a look at the Axaptamedia forum
> http://www.axaptapedia.com/index.php/Determining_if_an_object_is_...
> there you will find the answer.
>
> "Evelio" wrote:
>
> > Is there any method to know if a class is parent or child from another class?
> > How may I know it.
> >
> > I believe I saw some kind of function or static method for this while
> > debugging. It was something like "isClassParentOrChild(Class1, Class2,..)"
> > do not remember exactly but now that I need it, I just can't find it.
> >
> > Thank you in advance.