Android Question obtain a value from CallSub

Roberto P.

Well-Known Member
Licensed User
Longtime User
good Morning
how do I get me to return a value from an object with the function CallSub?

For example, an object has a function that returns a string: Sub GetName as string

How do I get me the string to a CallSub? If callsub does not allow it, as I think, there is another way to achieve the same result by having different classes?

Thank You
greetings
 

derez

Expert
Licensed User
Longtime User
In Treeview I do this by a public variable in the class globals (specifically - a list) which the main module fills with data after being caled by callsub.
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Not a treeview, but custom controls.
thanks
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
I found that callsub can also return a value:

dim sField as string

If SubExists(obj, "getField") Then

sField = CallSub(obj, "getField")


end if
 
Upvote 0
Top