Android Question Message to the compiler?

Jerryk

Active Member
Licensed User
Longtime User
I am creating my own custom view. Since my logic is based on Tags, I need to check for the uniqueness of the tag value.
View has a function AddLabel (pTag as String, ....).
I need to prevent using the same Tag when calling:
xxxxx.AddLabel("tag1",...) repeatedly.
I can detect the duplicate in the GetAllViewsRecursive loop, but how do I pass it to the compiler? Passing it via message seems unsystematic to me. Or another solution?
 

b4x-de

Active Member
Licensed User
Longtime User
Please post some example or code snippet. I don't fully understand, why you try to pass something to the compiler.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I need to prevent using the same Tag when calling:
xxxxx.AddLabel("tag1",...) repeatedly.
Add a private map or list to your Customview.
Check this map or list when using AddLabel. Return an error if the tag is already available in the map/list.
 
Last edited:
Upvote 0