Le 16/12/2013 06:53, Bruce a écrit : > Fiddling around under the hood .... > > Is there any hidden reason why Connections is readonly? >
Because it is a collection of connections defined in the project, so it is read-only. > Is there any reason for it not having a Count property? Not at all. I will add it. > > > The reason being, I am trying to get rid of my Application > override/inheritance problem from this morning. I have run into an issue > where a) we configure the connection host at runtime (the age-old > "dev/test/prod" server configuration) and b) one library creates a > hardcoded connection (it's actually a "softcoded" connection) to an > SQLite file in the tmp/gambas.999/proc directory. I need to share both > of these connections up and down our component/library tree. > > I have changed our local copy of gb.db but am wondering if there is any > hidden issues that could arise that mean that Connections must be > readonly. > > tia > Bruce > Did you try to override the Connections class instead? So that it returns both the static connections defined in the project or the new ones you want to add? -- Benoît Minisini ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user