cancel
Showing results for 
Search instead for 
Did you mean: 

VB >> Getting the text of an enum metaattribue

SOLVED
MEGA Partner

VB >> Getting the text of an enum metaattribue

Hey Mega Friends

I am pulling some data from Mega using a custom console application in Vb.net.
I am trying to get a value of an attribute that is an enumeration, the method I use usually is GetProp, but unfortunately this only gets the internal value of the attribute, is there a way to get the text value of this enum attribute ?


Mostafa
4 REPLIES
MEGA Partner

Re: VB >> Getting the text of an enum metaattribue

You should be able to add "external" and thereby get the external value of an attribute.
MEGA Partner

Re: VB >> Getting the text of an enum metaattribue

Hi hsoegaard,

 

Thank you for your response, where should I add external? can you give an example?

 

Thank you

 

Mostafa

MEGA Partner

Re: VB >> Getting the text of an enum metaattribue

I dont recall the syntax 100%, but try something like ("myattribute","External").

You can also search in existing macros to get an example.
MEGA Partner

Re: VB >> Getting the text of an enum metaattribue

Thanks a lot. It worked Smiley Very Happy

This is the exact sytax as a reference for everyone else

 

Plan is a MegaMapp.MegaObject type object as used in a vb.net solution

Origin is an enum metaattribute of Action Plan metaclass

 

 Plan.GetProp("Origin", "External")

 

Happy HOPEXing

 

Mostafa