String.Characters: How to determine the last character?

xojo is now 0 based

For index As Integer = 0 To length

=

For index As Integer = 0 To length-1
If index = length-1 Then

last char should be
System.DebugLog sentence.Right(1)
you could compare it in for each to know that you are at the end.

also insteresting