C cstangor Member Licensed User Longtime User Sep 18, 2012 #1 So I have a main activity. To keep my code manageable and findable, I want to make classes and to call the objects in the main activity. But the objects in the main activity are I believe private. So I believe that I cannot reference an object in the main activity from another class module. Is there a best practice? Thanks in advance.
So I have a main activity. To keep my code manageable and findable, I want to make classes and to call the objects in the main activity. But the objects in the main activity are I believe private. So I believe that I cannot reference an object in the main activity from another class module. Is there a best practice? Thanks in advance.
JonPM Well-Known Member Licensed User Longtime User Sep 19, 2012 #2 Have you read through this? Good info in there. Also, you can Dim objects under Process globals, which is accessible to all other activities. Upvote 0
Have you read through this? Good info in there. Also, you can Dim objects under Process globals, which is accessible to all other activities.
C cstangor Member Licensed User Longtime User Sep 19, 2012 #3 OK thanks, that's helpful. But I think I wasn't very clear I can't dim a listview in process_globals. So how do I access that listview from another module? Alternatively, I can create the listview in the other module, but how do I put it onto the main activity for display? Thanks again Upvote 0
OK thanks, that's helpful. But I think I wasn't very clear I can't dim a listview in process_globals. So how do I access that listview from another module? Alternatively, I can create the listview in the other module, but how do I put it onto the main activity for display? Thanks again
K kickaha Well-Known Member Licensed User Longtime User Sep 19, 2012 #4 I can't dim a listview in process_globals. So how do I access that listview from another module? Click to expand... Pass it as a parameter Alternatively, I can create the listview in the other module, but how do I put it onto the main activity for display? Click to expand... Pass it back as a return value Upvote 0
I can't dim a listview in process_globals. So how do I access that listview from another module? Click to expand... Pass it as a parameter Alternatively, I can create the listview in the other module, but how do I put it onto the main activity for display? Click to expand... Pass it back as a return value