Basic4android v2.70 and class properties

realblue

Member
Licensed User
Longtime User
Happy programming folks,

Great things are happening with B4A. A new version came up with "class property". Did anyone start using this feature?

I used to code two subs in order to implement get/set properties as follows:

...
Dim m_property as string
...


Public Sub property_set(value As String)
m_property = value
End Sub
Public Sub property_get As String
Return m_property
End Sub


As I understood from the documentation now I can use as m_property.text. But I couldn't make it work and also how will I declare read only or write only properties.

Thanks in advance.
 
Top