Blue.Sky Active Member Licensed User Longtime User Nov 24, 2015 #1 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?
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?
eurojam Well-Known Member Licensed User Longtime User Nov 24, 2015 #2 you can redim the object... Code: Copy Dim m as map m.initialize m.put("name","jak") log(m.IsInitialized) 'return True dim m as map log(m.IsInitialized) 'return ?? Upvote 0
you can redim the object... Code: Copy Dim m as map m.initialize m.put("name","jak") log(m.IsInitialized) 'return True dim m as map log(m.IsInitialized) 'return ??
Blue.Sky Active Member Licensed User Longtime User Nov 24, 2015 #3 eurojam said: you can redim the object... Code: Copy Dim m as map m.initialize m.put("name","jak") log(m.IsInitialized) 'return True dim m as map log(m.IsInitialized) 'return ?? Click to expand... But my variable is in other module and i use it in other module can i redim it in module with subrotine? Upvote 0
eurojam said: you can redim the object... Code: Copy Dim m as map m.initialize m.put("name","jak") log(m.IsInitialized) 'return True dim m as map log(m.IsInitialized) 'return ?? Click to expand... But my variable is in other module and i use it in other module can i redim it in module with subrotine?
lemonisdead Well-Known Member Licensed User Longtime User Nov 24, 2015 #4 Blue.Sky said: can i redim it in module with subrotine? Click to expand... Yes, you can or addressing it with the module's name but the map should be a Process_Globals one Code: Copy 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
Blue.Sky said: can i redim it in module with subrotine? Click to expand... Yes, you can or addressing it with the module's name but the map should be a Process_Globals one Code: Copy 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
JonPM Well-Known Member Licensed User Longtime User Nov 24, 2015 #5 lemonisdead said: or you could declare it in the Starter service if you use it Click to expand... This is what I would do. Place the map in the Starter service, then re-dim is as needed Upvote 0
lemonisdead said: or you could declare it in the Starter service if you use it Click to expand... This is what I would do. Place the map in the Starter service, then re-dim is as needed
warwound Expert Licensed User Longtime User Nov 24, 2015 #6 Or Dim a new Object - List, Map etc - and assign the new Object as the value of the variable in the other module: Code: Copy Dim MyNewList As List MyOtherModule.ExistingList=MyNewList No need for a new Sub in the other module with this technique. Upvote 0
Or Dim a new Object - List, Map etc - and assign the new Object as the value of the variable in the other module: Code: Copy Dim MyNewList As List MyOtherModule.ExistingList=MyNewList No need for a new Sub in the other module with this technique.
Blue.Sky Active Member Licensed User Longtime User Nov 26, 2015 #7 warwound said: Or Dim a new Object - List, Map etc - and assign the new Object as the value of the variable in the other module: Code: Copy Dim MyNewList As List MyOtherModule.ExistingList=MyNewList No need for a new Sub in the other module with this technique. Click to expand... Thank you,It solved Upvote 0
warwound said: Or Dim a new Object - List, Map etc - and assign the new Object as the value of the variable in the other module: Code: Copy Dim MyNewList As List MyOtherModule.ExistingList=MyNewList No need for a new Sub in the other module with this technique. Click to expand... Thank you,It solved