Hi,
I know I can create new Type, but now I need also to create method/function for my type. This could simplify my job.
I'd like to avoid writing a new lib for this, so I'd like to know if I can use the Structure syntax, more or less in this way:
Is it possible to do something similar in B4R?
Thank you
I know I can create new Type, but now I need also to create method/function for my type. This could simplify my job.
I'd like to avoid writing a new lib for this, so I'd like to know if I can use the Structure syntax, more or less in this way:
B4X:
Public Structure Box
Dim Length As Double
Dim Width As Double
Dim height As Double
Function Volume() As Double
Return Length * Width * height
End Function
End Structure
Is it possible to do something similar in B4R?
Thank you