F Frank660405 Member Licensed User Longtime User Jun 3, 2018 #1 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
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
Eme Fibonacci Well-Known Member Licensed User Longtime User Jun 3, 2018 #2 Sometimes understanding the question is more difficult than giving the answer Upvote 0
F Frank660405 Member Licensed User Longtime User Jun 3, 2018 #3 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
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.
F Frank660405 Member Licensed User Longtime User Jun 3, 2018 #4 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
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
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2018 #5 Please use [code]code here...[/code] tags when posting code. Video tutorial about code modules and classes: Upvote 0
Please use [code]code here...[/code] tags when posting code. Video tutorial about code modules and classes:
F Frank660405 Member Licensed User Longtime User Jun 3, 2018 #7 it seems not easy to access the video here Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 3, 2018 #8 The videos are also available here: https://www.youtube.com/playlist?list=PLSXGv13TotQZUPJCw1lnxeaPsfYjns5W- Upvote 0
The videos are also available here: https://www.youtube.com/playlist?list=PLSXGv13TotQZUPJCw1lnxeaPsfYjns5W-
F Frank660405 Member Licensed User Longtime User Jun 3, 2018 #9 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: Jun 3, 2018 Upvote 0
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!
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2018 #10 Frank660405 said: is there any other way to watch them? Click to expand... Download all videos: https://drive.google.com/open?id=1bDiVwRoemQ6Q8cWNkYQ55kJT4wCEofIW Upvote 0
Frank660405 said: is there any other way to watch them? Click to expand... Download all videos: https://drive.google.com/open?id=1bDiVwRoemQ6Q8cWNkYQ55kJT4wCEofIW