Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #1 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: Feb 2, 2018
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?
DonManfred Expert Licensed User Longtime User Feb 2, 2018 #2 Maybe just make the Type Private inside the Class Upvote 0
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #3 DonManfred said: Maybe just make the Type Private inside the Class Click to expand... It signals an error if imposed as private Upvote 0
DonManfred said: Maybe just make the Type Private inside the Class Click to expand... It signals an error if imposed as private
Emme Developer Well-Known Member Licensed User Longtime User Feb 2, 2018 #4 I think it's no possible to hide a type. So i wrote a wish about this few time ago https://www.b4x.com/android/forum/threads/private-type.87479/ Upvote 0
I think it's no possible to hide a type. So i wrote a wish about this few time ago https://www.b4x.com/android/forum/threads/private-type.87479/
DonManfred Expert Licensed User Longtime User Feb 2, 2018 #5 are you trying to access the property from outside the class? Hiding your code will not help us Upvote 0
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #6 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
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
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #7 DonManfred said: are you trying to access the property from outside the class? Hiding your code will not help us Click to expand... 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
DonManfred said: are you trying to access the property from outside the class? Hiding your code will not help us Click to expand... I have to hide a Type. No variable declared with that type must be read from the outside. It is for internal use only
Emme Developer Well-Known Member Licensed User Longtime User Feb 2, 2018 #9 LucaMs said: Use a class instead of a Type Click to expand... In some case you can't use a class instead of type Upvote 0
LucaMs said: Use a class instead of a Type Click to expand... In some case you can't use a class instead of type
LucaMs Expert Licensed User Longtime User Feb 2, 2018 #10 Emme Developer said: In some case you can't use a class instead of type Click to expand... An example? Upvote 0
Emme Developer said: In some case you can't use a class instead of type Click to expand... An example?
Emme Developer Well-Known Member Licensed User Longtime User Feb 2, 2018 #11 LucaMs said: For example? Click to expand... When you need to save the object with serialization. Class has a context that can't be serialized, so if you want to save the entire object you can't use a class Upvote 0
LucaMs said: For example? Click to expand... When you need to save the object with serialization. Class has a context that can't be serialized, so if you want to save the entire object you can't use a class
LucaMs Expert Licensed User Longtime User Feb 2, 2018 #12 LucaMs said: Use a class instead of a Type Click to expand... https://www.b4x.com/android/forum/threads/type-class-or-module.72734/#post-462446 Upvote 0
LucaMs said: Use a class instead of a Type Click to expand... https://www.b4x.com/android/forum/threads/type-class-or-module.72734/#post-462446
LucaMs Expert Licensed User Longtime User Feb 2, 2018 #13 Emme Developer said: When you need to save the object with serialization. Class has a context that can't be serialized, so if you want to save the entire object you can't use a class Click to expand... I never serialized objects but I believe you. I suppose this is the only exception. Upvote 0
Emme Developer said: When you need to save the object with serialization. Class has a context that can't be serialized, so if you want to save the entire object you can't use a class Click to expand... I never serialized objects but I believe you. I suppose this is the only exception.
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #14 I was simply hoping for a command Code: Copy #ExcludeFromXml Type LucaMs (Genial as int) #ExcludeEnd Upvote 0
LucaMs Expert Licensed User Longtime User Feb 2, 2018 #15 Star-Dust said: I was simply hoping for Click to expand... I was simply hoping for... win Lotto Last edited: Feb 2, 2018 Upvote 0
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #16 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
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
LucaMs Expert Licensed User Longtime User Feb 2, 2018 #17 Star-Dust said: 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 Click to expand... Well, it should allow private types, not: Star-Dust said: #ExcludeFromXml Click to expand... but I think it is not possible. Upvote 0
Star-Dust said: 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 Click to expand... Well, it should allow private types, not: Star-Dust said: #ExcludeFromXml Click to expand... but I think it is not possible.
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #18 LucaMs said: Use a class instead of a Type Click to expand... 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
LucaMs said: Use a class instead of a Type Click to expand... 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
Star-Dust Expert Licensed User Longtime User Feb 2, 2018 #19 LucaMs said: Well, it should allow private types, not: but I think it is not possible. Click to expand... He was an example. It could also be: Code: Copy #Region ExcludeFromXml Or Code: Copy PrivateForLibrary Type LucaMs (Romanaccio as Boolean) Upvote 0
LucaMs said: Well, it should allow private types, not: but I think it is not possible. Click to expand... He was an example. It could also be: Code: Copy #Region ExcludeFromXml Or Code: Copy PrivateForLibrary Type LucaMs (Romanaccio as Boolean)
LucaMs Expert Licensed User Longtime User Feb 2, 2018 #20 Star-Dust said: This is not useful, I must of course exclude that class from the library. Click to expand... Your class, used instead of your type, will not be exposed by your library; did you try? Upvote 0
Star-Dust said: This is not useful, I must of course exclude that class from the library. Click to expand... Your class, used instead of your type, will not be exposed by your library; did you try?