[Gambas-user] Boxed string question

Gianluigi bagonergi at gmail.com
Wed Sep 11 00:14:42 CEST 2019


Hi all,

why does this code not work and does not transform all words into
String.UCaseFirst?
Boxed string shouldn't be similar to the mid function?

Private Function ProperCase(value As String) As String

  For i As Integer = 0 To Len(value) - 1
    If value[i] = " " Then String.Upper(value[i + 1])
  Next
  Return String.UCaseFirst(value)

End

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190911/7c5fe64c/attachment.html>


More information about the User mailing list