Hello everyone,
What I want to ask, I searched for it in the forum but my search produced no satisfying results...
I would like to ask if anyone of you knows if it is possible to call a sub in a class (within the class) on a change of a value of the class.
Let's say that the class exposes a public variable like that:
when we initialize the class with ClassName.Initialize is it possible to do that just bye setting the value lng?
f.e.
and that would call:
which is included in the class.
Perhaps someone would like to redirect me to a thread that I did not notice.
Thanks in advance
What I want to ask, I searched for it in the forum but my search produced no satisfying results...
I would like to ask if anyone of you knows if it is possible to call a sub in a class (within the class) on a change of a value of the class.
Let's say that the class exposes a public variable like that:
B4X:
Sub Class_Globals
Public lng as Long
End Sub
when we initialize the class with ClassName.Initialize is it possible to do that just bye setting the value lng?
f.e.
B4X:
ClassName.lng = 100
and that would call:
B4X:
Sub HandleChange
'Do something with lng
End Sub
which is included in the class.
Perhaps someone would like to redirect me to a thread that I did not notice.
Thanks in advance