<div dir="ltr"><div><div><div>i explain me bad, i mean the name of the new clas could be equal as the name of the "connection name"<br><br>so, how can i emulate the creation of class like in php : <br> $this->config("database1")<br></div>so then i now have a new class named "datbase1"<br></div> $this->database1->query("select * from dual")<br><br></div>please help!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div>
<br><div class="gmail_quote">2018-06-15 9:33 GMT-04:00 PICCORO McKAY Lenz <span dir="ltr"><<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>hi to all.. i try to make a minimal framework to work in gambas as a library/component to load..<br><br></div>i try to see how to handle best way to use connections by name.. just like codeigniter framework does.. i mean.. <br><br></div>in CI framework, the coder just only load the connection "by name" as defined on settings in the "database.conf" file configuration.. <br><br></div>i have a collection of all the configuartion files that inherits from Settings and collection (a special class just like settings but handle all the variables like collection but admit a null value)<br><br></div>basically how can i emulate the creation of class like in php : <br> $newclass = $this->config("database1") <br><br>??<br><br></div>of course "newclass" its a connection gambas class <br><div><div><div><div><div><div><br><br clear="all"><div><div class="m_-3331600988236990000gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.<wbr>com</a></font></div></div></div>
</div></div></div></div></div></div></div>
</blockquote></div><br></div>