access views from a code module

vangogh

Active Member
Licensed User
Longtime User
from my code module I should read and write the content of a label in an activity module

but

myactivity.lblmylabel.text = "working - please wait"

does not work, because lblmylabel is not visible from other modules, and I cannot define it in process_globals

what can I do?

(in basic4android i fell the lack of modules/activity intercommunication... I am writing all my "multipage" prog in a single activity module, using tons of panels...)

thank you
 

stevel05

Expert
Licensed User
Longtime User
I was too slow, very simple example of passing the label attached.
 

Attachments

  • testmod.zip
    5.8 KB · Views: 294
Upvote 0

vangogh

Active Member
Licensed User
Longtime User
it works.

it would be really useful if, from an activity or a code module, I could access the (other) activity views, without passing them as parameters... (they could be a lot)

thank you.
 
Upvote 0
Top