Re: [Gambas-user] Constant order to process in component creation

2014-10-02 Thread Jorge Carrión
Ok. Thanks a lot, Benoit. Regards 2014-10-02 23:42 GMT+02:00 Benoît Minisini : > Le 02/10/2014 23:18, Tobias Boege a écrit : > > On Thu, 02 Oct 2014, Jorge Carri??n wrote: > > ... > > Yep. You can't rely on property initialization order, this is a bug in > your code if you do that. > > The prop

Re: [Gambas-user] Constant order to process in component creation

2014-10-02 Thread Jorge Carrión
>Does this help you? Yes Tobi it's helpfull. >About your question: If I was you, I wouldn't want to rely on a specific >order of execution. What if the user sets conexion = Null *mid-execution*? >You need to handle the case $conexion = Null in your fill_the_grid(): Usually I allways set the code

Re: [Gambas-user] Constant order to process in component creation

2014-10-02 Thread Benoît Minisini
Le 02/10/2014 23:18, Tobias Boege a écrit : > On Thu, 02 Oct 2014, Jorge Carri??n wrote: > ... Yep. You can't rely on property initialization order, this is a bug in your code if you do that. The properties of a control must be "set-able" in any order. If your control requires that at least tw

Re: [Gambas-user] Constant order to process in component creation

2014-10-02 Thread Tobias Boege
On Thu, 02 Oct 2014, Jorge Carri??n wrote: > Excuse my poor English. What I mean with "processing properties" is the > execution of triggered methods _read and _write of the propertie. > What I mean is somenthing like that: > > Export > > Inherits TableView > > Public Const _Properties As Strin

Re: [Gambas-user] Constant order to process in component creation

2014-10-02 Thread Jorge Carrión
Excuse my poor English. What I mean with "processing properties" is the execution of triggered methods _read and _write of the propertie. What I mean is somenthing like that: Export Inherits TableView Public Const _Properties As String = "*,conexion,sqlstring" Property conexion As Connection P

Re: [Gambas-user] Constant order to process in component creation

2014-10-02 Thread Tobias Boege
On Thu, 02 Oct 2014, Jorge Carri??n wrote: > I'm creating a new component that appears fine in the IDE. > But I have a problem: > > There is a property who triggers a method when is implemented but it needs > another property for work and this property is processed after the first > one by the IDE

[Gambas-user] Constant order to process in component creation

2014-10-02 Thread Jorge Carrión
I'm creating a new component that appears fine in the IDE. But I have a problem: There is a property who triggers a method when is implemented but it needs another property for work and this property is processed after the first one by the IDE The properties appears in the IDE in alphabetical orde