B bazp Member Licensed User Longtime User Nov 29, 2012 #1 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.
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.
margret Well-Known Member Licensed User Longtime User Nov 29, 2012 #2 Did you declare the Label in Process Globals in the Activity, it should be. Also you should try to access it as Main.Label1.Text. Upvote 0
Did you declare the Label in Process Globals in the Activity, it should be. Also you should try to access it as Main.Label1.Text.
B bazp Member Licensed User Longtime User Nov 29, 2012 #3 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
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."
mc73 Well-Known Member Licensed User Longtime User Nov 29, 2012 #4 Try calling a sub in your main and alter the label's text there. Code: Callsub2(main,"your sub","your text" In main module, write something like Code: Sub yoursub(yourtext as string) Label1.text=yourtext End sub bazp said: 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." Click to expand... Upvote 0
Try calling a sub in your main and alter the label's text there. Code: Callsub2(main,"your sub","your text" In main module, write something like Code: Sub yoursub(yourtext as string) Label1.text=yourtext End sub bazp said: 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." Click to expand...
B bazp Member Licensed User Longtime User Nov 29, 2012 #5 Fixed Thanks MC73 works like charm Upvote 0