This Code snippet does not work
I want to remove that last character of the string
I had to write a more verbose solution
B4X:
if sb.length>0 then
sb.Remove(sb.length-1,1)
end if
I want to remove that last character of the string
I had to write a more verbose solution
B4X:
Dim sNumber As String
If sb.Length>0 Then
sNumber=sb.toString
sNumber = sNumber.SubString2(0, sNumber.Length -1)
sb.Remove(0,sb.Length)
sb.Append(sNumber)
End If
Last edited: