[Gambas-user] can stored a OPENED connection object in a colletion?

PICCORO McKAY Lenz mckaygerhard at gmail.com
Thu Jun 28 15:04:21 CEST 2018


2018-06-27 16:50 GMT-04:00 Jussi Lahtinen <jussi.lahtinen at gmail.com>:

> Your English makes no sense.
>
sorry last line was misctyped!



> If you destroy object, you do nothing with the reference. So, they must
> have same scope.
>
i not taking about destroyng object but if the created object are on the
part that stored in the collection this makes sense..

so then how can avoid that behaviour?

i want something like php does with arrays ... ver very flexible!




>
>
> Jussi
>
> On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz <
> mckaygerhard at gmail.com> wrote:
>
>> so if i made a collection of my 3 of 4 connections objects those can be
>> opened globally!
>>
>> how can i emulated a stored object connection that must be opened always
>> before running the query?
>>
>> of course without inherits, due if all my objects inherits from one that
>> already have opened i can use it!
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>>
>> 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen <jussi.lahtinen at gmail.com>:
>>
>>> Collections have only reference to objects, they do not contain objects.
>>>
>>>
>>> Jussi
>>>
>>> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz <
>>> mckaygerhard at gmail.com> wrote:
>>>
>>>>
>>>> i can setup and store the connection object once opened in a collection
>>>> of connection objects?
>>>>
>>>> i want to use a pool from configuration file!
>>>>
>>>> so can stored a OPENED connection object in a colletion? (urrently
>>>> seems when i used me.add the conectuion object happened closed)
>>>>
>>>> Lenz McKAY Gerardo (PICCORO)
>>>> http://qgqlochekone.blogspot.com
>>>>
>>>>
>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>>
>>>>
>>>
>>>
>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>>
>>>
>>
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180628/453a0428/attachment.html>


More information about the User mailing list