How to compare label.Text

sanjibnanda

Active Member
Licensed User
Longtime User
thanks for confirmation, and when i looked.. it was a problem with white spaces and got it resolved with

RTrimSpaces

and with by my LTrimSpaces that removes the leading white spaces... too

B4X:
Sub LTrimSpaces(s As String) As String

  Dim i As Int

  For i = 0 To s.Length - 1 
    If s.CharAt(i) <> " " Then 
    Return s.SubString(i)
   End If
  Next
End Sub

and thanx for you help...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…