cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Property of the object type in VB script

Arunas
Trusted Contributor

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

Arunas
Trusted Contributor

Dear Loinel// Great ! It works

Thanks a lot

 

 

lionel
MEGA
MEGA

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