Android Question How to use a code module?

Frank660405

Member
Licensed User
Longtime User
How to use a code module?

When I call a Code Sub from a activity or a Sevice, if I just do like follwing.

CodeModuleName.NameOfSubInCodeModule

A=CodeModuleName.NameOfVariableInCodeModule
 

Frank660405

Member
Licensed User
Longtime User
hahahaha, sorry for that!

i mean that my app has 3 modules, one is an activity, one is a sevice, the other is a code module.

i want to calculate a variable A in the activity and another variable B in the service by call a sub of the code module.

can i use the code like:

Call Sub:

CodeModuleName.NameOfSubInCodeModule

Calculate the variable:

A = CodeModuleName.AA
B = CodeModuleName.BB

i hope i said clear.:):):)
 
Upvote 0

Frank660405

Member
Licensed User
Longtime User
ACTIVITY MODULE:

sub activity_create

codemodule1.HMS
A=codemodule.AA

end sub

SEVICE MODULE:

sevice_create

codemodule1.TtoHMS
B=codemodule.BB

end sub

codemodule1:
sub Process_Globals

End Sub

Sub TtoHMS

AA=....
BB=....

End Sub

 
Upvote 0

Frank660405

Member
Licensed User
Longtime User
i have tried and got the answer, what i have done is right.

i am in china. i can not reach the video rightnow. it is a pitty. maybe it will be ok later. i will have a try if i have free time. is there any other way to watch them?

great thanks to all the friends!
 
Last edited:
Upvote 0
Top