The previous topic has reminded me of something. Contrary to what is said or implied in section 3.2 of the "Object Model" help topic, it is not possible to override several if not many native classes.
Two particular instances leap to mind, "Application" and "Error". Try this: Create a new command line project in the IDE. Add a new class "Application" with the following contents ' Gambas class file Create Static Inherits Application Export Static Public Hello As String = "Hello from South Australia" Save and reload the project. In MMain.Main type the following: ?appl[Enter].he ( see screenshot appended) Now that, to me, looks like we have successfully overridden the Application class, but look what happens when you run it. Similar things happen with Error and Class. Probably more. To keep this one short, why would I want to override Application? So I can get at more of what is in the .project file, sort of more "introspection" than is currently there. Any thoughts or comments? (This is a discussion post, not a bug. That is unless I've got it totally worng agian. Which given my recent strike rate could be a possibility.) Bruce
<<attachment: shot3.png>>
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user