' Sub-texts
txt = "Rectangle"
subTxt = "angle"
If Text.IsSubText(txt, subTxt) Then
msg = subTxt + " is a sub-text of " + txt + "."
Else
msg = subTxt + " isn't a sub-text of " + txt + "."
EndIf
ShowMsg() ' angle is a sub-text of Rectangle.
If Text.EndsWith(txt, subTxt) Then
msg = txt + " ends with " + subTxt + "."
Else
msg = txt + " doesn't end with " + subTxt + "."
EndIf
ShowMsg() ' Rectangle ends with angle.
If Text.StartsWith(txt, subTxt) Then
msg = txt + " starts with " + subTxt + "."
Else
msg = txt + " doesn't start with " + subTxt + "."
EndIf
ShowMsg() ' Rectangle doesn't start with angle.