hello,
i need to declare a var in a Sub and i need that this var is visible from all sub called after the sub in witch the var is declared.
view the example code
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			i need to declare a var in a Sub and i need that this var is visible from all sub called after the sub in witch the var is declared.
view the example code
			
				B4X:
			
		
		
		Sub s_main
'this is the main sub that call in sequence s_1 and S_3
'the S_1 call the s_2
' I need v12 var is visible from S_1 and s_2 but not from s_3
'I don't pass my var as as parameter from s_1 to s_2
'Is this possible ?
'thank's
    s_1
    s_3
End Sub
Sub s_1
    Private v12 As Int
    v12 = 100
    s_2
End Sub
Sub s_2
    'need to use v12 var in this sub but not in other subs
    'v12 = is not visible here
End Sub
Sub s_3
   'i don't want that v_12 is visible from this sub
  
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		