Q qsrtech Active Member Licensed User Longtime User Feb 19, 2013 #1 Hi Erel, any timeline on when property getters and setters will be implemented? Thanks! John
Erel B4X founder Staff member Licensed User Longtime User Feb 20, 2013 #2 It is in the planned features list. I'm sorry but I do not know when it will be added.
Q qsrtech Active Member Licensed User Longtime User Feb 23, 2013 #3 Hi Erel, I appreciate it is probably a lot of work to implement this feature but it's kind of pretty crucial to being an OOP language. Look forward to seeing your update including this. Thanks! John
Hi Erel, I appreciate it is probably a lot of work to implement this feature but it's kind of pretty crucial to being an OOP language. Look forward to seeing your update including this. Thanks! John
Sergio Haurat Active Member Licensed User Longtime User Mar 5, 2014 #4 Erel, This is in development yet?
JakeBullet70 Well-Known Member Licensed User Longtime User Mar 5, 2014 #5 Properties Starting from B4A v2.70, classes support properties. Properties syntax can be considered a syntactic sugar. Properties combine two methods into a single "field" like member. For example the two following methods: Code: Code: Copy 'Gets or sets the text Sub getText As String Return btn.Text End Sub Sub setText(t As String) btn.Text = t End Sub Are merged automatically into a single property: The property can be treated like any other field: look here for class tutorial.
Properties Starting from B4A v2.70, classes support properties. Properties syntax can be considered a syntactic sugar. Properties combine two methods into a single "field" like member. For example the two following methods: Code: Code: Copy 'Gets or sets the text Sub getText As String Return btn.Text End Sub Sub setText(t As String) btn.Text = t End Sub Are merged automatically into a single property: The property can be treated like any other field: look here for class tutorial.