I’m really interested in what @Norman Palardy said about Attributes in the following thread. I’m currently using the control name to store the database table and column names and a class to register other properties about the field. It’d be amazing to add this info as Attributes! https://forum.xojo.com/3668-how-to-find-out-a-field-in-the-table-exist/p2#p272755
Is it possible to add Attributes to controls directly? I can’t seem to add them to controls, but I can on the WebPage. I read the info about Attributes in the user guide which states that you can add attributes to classes, modules, windows, containers, interfaces and toolbars.
So subclassed a WebTextField and added attributes, but when I dragged my subclassed WebTextField to the WebPage, but I couldn’t edit the Attributes.
Attributes can only be added to classes, but not to instances thereof:
Controls on a web page (or on a container, on a windows, etc.) are instances.
Web pages, containers, windows etc. are classes (and instances on the same time if ImplicitInstance = True).