I created a method inside of a module and I added an Attribute to that method. How can I use introspection to get the value assigned to that Attribute?
Attribute name: attrTest
Attribute value: 100
I created a method inside of a module and I added an Attribute to that method. How can I use introspection to get the value assigned to that Attribute?
Attribute name: attrTest
Attribute value: 100
Currently there is no built-in support for this; Xojo cannot pop up tooltip hints displaying method comments the way Visual Studio does.
Oh. Okay.
Sigh.
Look at the GetAttributes method on the various Introspection objects. This returns a list of key-value pairs that represent the Attributes you assigned in the IDE. There’s a small example here:
if you have a Introspection object at runtime use a break point and look in the debug window ![]()