Android Question Classes and Objects

Bryanne Vega

Member
Licensed User
Longtime User
How is it called when you have an object for example:


MyLibrary < Object
GetBook < Function
ByID < Another Function Inside of that One:

MyLibrary.GetBook.ByID < How is this called?

and is it available in B4A?
 

Informatix

Expert
Licensed User
Longtime User
How is it called when you have an object for example:


MyLibrary < Object
GetBook < Function
ByID < Another Function Inside of that One:

MyLibrary.GetBook.ByID < How is this called?

and is it available in B4A?
A class has two member types in B4A: functions and properties. If the function returns an instance of a class, or the property holds an instance of a class with other functions and properties, then you can have things like MyInstance.MyFunction.MyFunction.MyProperty... etc.
For example:
MyEditText.Text.GetBytes("UTF-8").Length
MyEditText is an instance of the EditText class. It's an object. It has a Text property (String class). The String class has a function GetBytes. This function returns a byte array which has a single property: length.
 
Upvote 0

Bryanne Vega

Member
Licensed User
Longtime User
As always, thank you for the quick support
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…