Label Problem

bazp

Member
Licensed User
Longtime User
I am modifying the Pinch and Zoom sample from Dominex. I need to ouput to a label from the service module. The module does recognize LABEL1.TEXT . It was set up using the designer. I tried using MAIN.TEXT but that did not work. Any help would be great.
 

bazp

Member
Licensed User
Longtime User
more errors

Will not accept dim label1 as label in PROCESS_GLOBALS. It does see the main.label1.text in the service module

But it gives the following error:

"Cannot access activity object from sub Process_Globals."
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Try calling a sub in your main and alter the label's text there.
B4X:
Callsub2(main,"your sub","your text"
In main module, write something like
B4X:
Sub yoursub(yourtext as string)
Label1.text=yourtext 
End sub
Will not accept dim label1 as label in PROCESS_GLOBALS. It does see the main.label1.text in the service module

But it gives the following error:

"Cannot access activity object from sub Process_Globals."
 
Upvote 0
Top