Flow question from newbie

cstangor

Member
Licensed User
Longtime User
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
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

cstangor

Member
Licensed User
Longtime User
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

kickaha

Well-Known Member
Licensed User
Longtime User
I can't dim a listview in process_globals. So how do I access that listview from another module?
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?
Pass it back as a return value
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…