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:
'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.