Txs for the info,
Alain 2013/10/13 Benoît Minisini <gam...@users.sourceforge.net> > Le 12/10/2013 21:42, Alain Baudrez a écrit : > > In an app where I use a class to retrieve info from a database, I use the > > constructor method _new() to open the connection to the db as follows: > > The database is automatically closed when the Connection object is freed. > > The Connection reference stored in $db is automatically released when > the Gambas "db" object is freed. If $db is the only reference, then the > Connection object is freed, and the database is closed. > > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user