Suppose I create a Text Extension called NthField, to work like String.NthField, but for Text:
// Extends t As Text, separator As Text, field As Integer
Dim arr() As Text = t.Split(separator)
If field - 1 <= arr.Ubound Then Return arr(field - 1)
What happens if a future version of Xojo finally adds an NthField method to the Text class. What happens to my code where I have been using Text.NthField as a Text Extension? Should I just rename my NthField Extension now to something else, like FieldN, to avoid this?
I just tried it with my own Text.Left and it errors at build with a “more than one item” error, your will probably do the same if they implement it down the line.