cancel
Showing results for 
Search instead for 
Did you mean: 

Property of the object type in VB script

SOLVED
Frequent Contributor

Property of the object type in VB script

Dear Community Users ///

 

How to get the property of the object type in VB script ?

 

Eg :

 

Associated objects:

 

Obj1  - O/p: This object belongs to type "Organizational Process "

obj2 - O/p: This object belongs to type "Org-Unit"

obj3 - O/p: This object belongs to type "Functional Process"

 

//Thanks

2 REPLIES
Highlighted
MEGA

Re: Property of the object type in VB script

Hello,

 

use the "getClassId" to get the identifier of your metaClass.

Then use "getobjectfromid" to retrieve the object :-)

 

e.g.

 

 

msgbox obj1.shortname & " belongs to type " & oRoot.getObjectFromId(obj1.getClassId).name

Of course, obj1 et oRoot need to be defined ;-)

 

 

Regards,

 

Lionel

Frequent Contributor

Re: Property of the object type in VB script

Dear Loinel// Great ! It works

Thanks a lot