How to get the line break char?

dunbarx dunbarx at
Wed Apr 18 08:49:36 EDT 2018


You cannot ask for the "last" char of a line, because LC will give you the
last "non-control" char.

Say you have the below text in a field:


So the last char of line 1 is "c". But the number of chars of that text
snippet is 7

But numToChar(char 4 of fld 1) = 10. That is a return char between the "c"
and the "d"


Sent from:

More information about the Use-livecode mailing list