Hi
I'm writing a wrapper for a library. I have several listeners working as expected which pass through floats etc
Another listener passes back an Object and a Enum.
What is the best way to handle an Enum in B4A?
Should I cast the Enum to a string in the wrapper or is there a smarter way to handle the Enum?
Ideally I would like to avoid duplicating the Enum with custom types in B4A (as per here) which is why Im thinking of returning a string.
Any better ways to do this?
Thanks
I'm writing a wrapper for a library. I have several listeners working as expected which pass through floats etc
Another listener passes back an Object and a Enum.
What is the best way to handle an Enum in B4A?
Should I cast the Enum to a string in the wrapper or is there a smarter way to handle the Enum?
Ideally I would like to avoid duplicating the Enum with custom types in B4A (as per here) which is why Im thinking of returning a string.
Any better ways to do this?
Thanks