If you have any string with Chr(13) ending and using Len() to get the stringlen, the Chr(13) will counted too. If you use something like Left() and trying to cut the string with the length you got by Len(), the string will still have a special char Chr(13)... I dont know if this is a feature or not...
Btw, what do you think about one more flag for Len() command? For example Len(string.s, flag) ...
flag 0 = Counting including special chars, like Chr(13)
flag 1 = Counting without adding stuff like Chr(13) ....
Code: Select all
text.s = "This is Art" + Chr(13)
a = Len(text.s)
Debug a
Debug text.s