Android Question Destroy map or list

Blue.Sky

Active Member
Licensed User
Longtime User
Hi
I add some item to Map or List data.
And check Initialize method in many activity
How can i remove Map or List and return false for initialize method?

Exam:
Dim m as map
m.initialize
m.put("name","jak")
log(m.IsInitialize) 'return True

Now how i destroy it for return false for m.IsInitialize?
 

Blue.Sky

Active Member
Licensed User
Longtime User
But my variable is in other module
and i use it in other module
can i redim it in module with subrotine?
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
can i redim it in module with subrotine?
Yes, you can or addressing it with the module's name but the map should be a Process_Globals one
B4X:
module.m.initialize
or simply by calling a sub in the proprietary module as you said if it is a Globals one
or you could declare it in the Starter service if you use it
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Or Dim a new Object - List, Map etc - and assign the new Object as the value of the variable in the other module:

B4X:
Dim MyNewList As List
MyOtherModule.ExistingList=MyNewList

No need for a new Sub in the other module with this technique.
 
Upvote 0

Blue.Sky

Active Member
Licensed User
Longtime User
Thank you,It solved
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…