Android Question adding to existing string

Discussion in 'Android Questions' started by dualznz, May 23, 2015.

  1. dualznz

    dualznz Member Licensed User

    Hi all
    i am trying to add data to an existing sting
    in c# i would just go

    String J = null;
    j = 
    "member1, ";
    // when adding more data 
    to exisitng string var
    j = j += 
    "member2, ";
    how would i do this in b4a, i tired .Append but it dont like it?
  2. dualznz

    dualznz Member Licensed User

    update, i figured it out i had my logic all wrong

    new logic is
    Dim players As String
            resultsfromdb2 = SQLmain.ExecQuery(
    "SELECT * FROM main_profiles WHERE player_team='"  & id & "' ORDER BY player_name ASC")
    If resultsfromdb2.RowCount > 0 Then
    For T = 0 To resultsfromdb2.RowCount - 1
                    resultsfromdb2.Position = T
    Dim player As String
                    player = resultsfromdb2.GetString(
                    players = players & player & 
    ", "
                members_list.Text = players
    End If
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice