Hi, All
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This code is not compiled, error is:
How to dim and re-dim several arrays in VARIOUS MODULES, if the dimension is variable, and known in some SINGLE separate code module ? Actually, it's const depending on the Build configurations.
			
			
			
				B4X:
			
		
		
		Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Private timers(dinputs.Channels_num) As Timer
    Private Started(dinputs.Channels_num) As ULong
    Dim State1(dinputs.Channels_num) As Byte
    Dim State2(dinputs.Channels_num) As Byte
    Dim Switches(dinputs.Channels_num) As Byte
End SubThis code is not compiled, error is:
The size of non-primitive arrays must be a numeric literal.
How to dim and re-dim several arrays in VARIOUS MODULES, if the dimension is variable, and known in some SINGLE separate code module ? Actually, it's const depending on the Build configurations.
 
				 
 
		 
 
		 
 
		