B4J Question Going Textfield.text together

Discussion in 'B4J Questions' started by codie01, Jun 29, 2015.

  1. codie01

    codie01 Member Licensed User

    Hi All,

    I am trying to join two textfields.text together and display them in an index label.text. I was sure I could do this in b4a

    Thanks in advance

    #Region  Project Attributes 
    #MainFormWidth: 600
    #MainFormHeight: 400 
    #End Region

    Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private siteform_subdivision As TextField
    Private siteform_lot  As TextField
    Private siteform_siteindex As Label
    End Sub

    Sub AppStart (Form1 As Form, Args() As String)
        MainForm = Form1
    "simplix_siteform"'Load the layout file.
    End Sub
    Sub siteform_lot_TextChanged (Old As String, New As String)

    End Sub
    Sub siteform_subdivision_TextChanged (Old As String, New As String)
        siteform_siteindex.Text = siteform_subdivision.Text + siteform_lot.Text
    End Sub

  2. Erel

    Erel Administrator Staff Member Licensed User

    Change + to & (concatenation operator).