For now, I'm using this as a substring replacement
Function SubStr(Text As String, Start As Int, Length As Int) As String
Define Result As String
Define MaxPosition As Int
Define xx As Int
MaxPosition = Start + length - 1
If StringLength(Text) < MaxPosition Then
MaxPosition = StringLength(Text)
End If
For xx = Start To MaxPosition
Result = Result + Substring(Text, xx, 1)
Next
Return Result
End Function
Must be slow as molasses, unless the combined efforts of Jon and Microsoft lead to great compiler optimization. :-) But it gets the job done.
By the way, when researching Substring, I ran into this error in the manual:
Function ContainsMonkey( Text As String ) As Bool
If SubString( Text, "Monkey" ) <> 0 Then
Return True
Else
Return False
End If
End Function
"Substring" in that fragment should be "IndexOf".