Kostas_Bar
Member
Hello everyone!
I use B4X and call this sub (located in B4XMainPage) from various modules:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I pass an
In the
Is it because it is called from another module?
It seems like the input.Text isn't affected by the user's typed input (when i Log the input it prints an empty string).
Any ideas?
			
			I use B4X and call this sub (located in B4XMainPage) from various modules:
			
				dialog Sub:
			
		
		
		Public Sub DBRF(ScanHere As B4XView, CallRoot As B4XView)
    Public ThirdDialog As B4XDialog
    ThirdDialog.Initialize(CallRoot)
    ThirdDialog.BorderCornersRadius = 44
    ThirdDialog.Title = "Debug Options"
    
    Dim input3 As B4XInputTemplate
    input3.Initialize
    input3.lblTitle.Text = "Πληκτρολογίστε Barcode εδώ."
    
            
    Wait For (ThirdDialog.ShowTemplate(input3, "RF", "Barcode", "")) complete (result As Int)
    Log(input3.Text)
    If result = xui.DialogResponse_Positive Then
        MsgboxAsync(ScanHere.Text, "Κείμενο στο Πεδίο Scan:")
        ScanHere.Text = ""
        ScanHere.RequestFocus()
    Else If result = xui.DialogResponse_Negative Then
        ScanHere.Text = input3.Text
        Log($"Scan Here text: ${input3.Text}"$)
    End If
End SubI pass an
EditText (ScanHere)as B4XView and the Root (CallRoot) of each module I use it from.In the
Else If statement, it should pass the input.Text to the EditText View, but it doesnt do that.Is it because it is called from another module?
It seems like the input.Text isn't affected by the user's typed input (when i Log the input it prints an empty string).
Any ideas?
 
				 
 
		 
 
		 
 
		 
 
		