derez Expert Licensed User Longtime User Nov 8, 2010 #1 Looks great ! I added 1 to the index and got an error, see photo. B4X: For i = 1 To 500 ListView1.AddSingleLine("Item #" & i+1) ... changed the code to this and it works. B4X: Dim k As Int For i = 1 To 500 k=i+1 ListView1.AddSingleLine("Item #" & k) ...... Last edited: Nov 8, 2010
Looks great ! I added 1 to the index and got an error, see photo. B4X: For i = 1 To 500 ListView1.AddSingleLine("Item #" & i+1) ... changed the code to this and it works. B4X: Dim k As Int For i = 1 To 500 k=i+1 ListView1.AddSingleLine("Item #" & k) ......
agraham Expert Licensed User Longtime User Nov 8, 2010 #2 I'm afraid that is a coding error "Item #" & i + 1 is not a valid string expression "Item #" & (i + 1) however is.
I'm afraid that is a coding error "Item #" & i + 1 is not a valid string expression "Item #" & (i + 1) however is.