A Antonio Ferreira Member Licensed User Longtime User Aug 25, 2020 #1 This is ok B4X: Dim col2 As B4XTableColumn = B4XTable1.GetColumn("Sec") B4XTable2.CreateDataView($"${col2.SQLID.Trim} = 'ELT' "$) this is not ok ... ? B4X: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = ${Msec} "$) or B4X: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = '" & Msec & "' "$) [/CODE] How can filter a B4xtable column with a string (Msec) ?
This is ok B4X: Dim col2 As B4XTableColumn = B4XTable1.GetColumn("Sec") B4XTable2.CreateDataView($"${col2.SQLID.Trim} = 'ELT' "$) this is not ok ... ? B4X: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = ${Msec} "$) or B4X: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = '" & Msec & "' "$) [/CODE] How can filter a B4xtable column with a string (Msec) ?
M Mahares Expert Licensed User Longtime User Aug 25, 2020 #2 Antonio Ferreira said: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = ${Msec} "$) Click to expand... It should be like this: B4X: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = '${Msec}' "$) Upvote 1
Antonio Ferreira said: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = ${Msec} "$) Click to expand... It should be like this: B4X: Dim Msec As String Msec="ELT" B4XTable1.CreateDataView($"${col2.SQLID.Trim} = '${Msec}' "$)