Re: [Gambas-user] Releasing allocated memory and closing a database

2013-10-13 Thread Alain Baudrez
Txs for the info, Alain 2013/10/13 Benoît Minisini > 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 w

Re: [Gambas-user] Releasing allocated memory and closing a database

2013-10-13 Thread Benoît Minisini
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: > > Code snippet: > > ' Gambas class file > ' Name: db.class > > Private $db As New Connection > > ' Cont

[Gambas-user] Releasing allocated memory and closing a database

2013-10-12 Thread Alain Baudrez
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: Code snippet: ' Gambas class file ' Name: db.class Private $db As New Connection ' Contructor Public Sub _new() ' Open the connection to the database