Code module

mrossen

Active Member
Licensed User
Longtime User
Hi there,

I have made a project where all the text are in english. I would like to add different language for the project.

I have tried to make a code module for the job.

My problem is that I can not access the variables for the labels I have made with the designer.

I would like to ex write lang.dk and then all text in my project is in danish.

I have made a small ex. what I am trying to do. But I dont know how to declare the variables.

Mogens

B4X:
'Code module
'Subs in this code module will be accessible from all modules.
Sub Process_Globals
   
End Sub
Sub dk

   LabellOutputTextCircuitOne.Text = "Kredsløb 1"
   
End Sub
Sub en
   
   LabellOutputTextCircuitOne.Text = "Circuit 1"

End Sub
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…