Android Question Hide Type from a class

Star-Dust

Expert
Licensed User
Longtime User
I created a custom type within a class. I need to save data.

I do not want this Type to appear after the class is completed. Now I manually delete the type declared by the XML file. So it does not appear to me.

The question is: is there another way to exclude (or not display) the custom type from the compiled class?
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Maybe the IDE could delete the type when it generates the XML file. Maybe with specific code settings.

Otherwise I would have to create an App in Vb6 that would modify XML ... frankly I would like to avoid it
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
are you trying to access the property from outside the class?

Hiding your code will not help us
I have to hide a Type. No variable declared with that type must be read from the outside.

It is for internal use only
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I was simply hoping for a command
B4X:
#ExcludeFromXml
Type LucaMs (Genial  as int) 
#ExcludeEnd
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
I know that the Anywhere software is made up of good, warm-hearted and generous men. I am sure that they will insert a similar thing in B4A 8.0
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Use a class instead of a Type
This is not useful, I must of course exclude that class from the library.

When you exclude it, it does not allow you to use it within the other classes present
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Well, it should allow private types, not:

but I think it is not possible.
He was an example.
It could also be:
B4X:
#Region ExcludeFromXml
Or
B4X:
PrivateForLibrary  Type LucaMs (Romanaccio as Boolean)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…