Hi there...
I was searching the b4x forum for ABMInput calculations (actually realtime) and haven't found anything...
I was hoping the following code working - but obviously making something wrong :-(
Where am I wrong... ?
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			I was searching the b4x forum for ABMInput calculations (actually realtime) and haven't found anything...
I was hoping the following code working - but obviously making something wrong :-(
Where am I wrong... ?
			
				B4X:
			
		
		
		Sub Class_Globals
    Dim inp1 As ABMInput
    Dim inp2 As ABMInput
    Dim inp3 As ABMInput
....
Sub ConnectPage()
...
    inp1.Initialize(page, "inp1",ABM.INPUT_NUMBER, "A Number", False, "input")
    inp1.RaiseChangedEvent=True
    inp1.RaiseFocusEvent=True
    page.Cell(2,1).AddComponent(inp1)
    inp2.Initialize(page, "inp2",ABM.INPUT_NUMBER, "B Number", False, "input")
    inp2.RaiseChangedEvent=True
    inp2.RaiseFocusEvent=True
    page.Cell(3,1).AddComponent(inp2)
    inp3.Initialize(page, "inp3",ABM.INPUT_NUMBER, "C Number", False, "input")
    inp3.RaiseChangedEvent=True
    inp3.RaiseFocusEvent=True
    page.Cell(4,1).AddComponent(inp3)
....
Sub inp1_changed(value As String)
    If inp1.Text.Length>0 Then
        inp3.Text=inp1.Text+inp2.text
        'inp1.refresh
        'inp2.refresh
        'inp3.Refresh
    End If
End Sub
Sub inp2_changed(value As String)
    If inp2.Text.Length>0 Then
        inp3.Text=inp1.Text+inp2.text
        'inp1.refresh
        'inp2.refresh
        'inp3.Refresh
    End If
End Sub 
				 
 
		 
 
		 
 
		 
 
		