What Mark meant was that the formattedText reconfigures the displayed text as if it had hard returns in just the right places. His script uses the formattedText...
Anyone remember the "wordWrap" XFCN in HC? I never knew who wrote it. Craig -----Original Message----- From: Dr. Hawkins <doch...@gmail.com> To: How to use LiveCode <use-livecode@lists.runrev.com> Sent: Thu, Sep 19, 2013 11:19 am Subject: Re: determining if cursor is in last line of a field On Thu, Sep 19, 2013 at 1:08 AM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Probably, that won't do it. Try this: > > put (number of lines of the formattedText of \ > char 1 to (word 2 of the selectedChunk) of myTarget) is \ > (the number of lines of the formattedText of myTarget) > --> true|false > Now I'm confused: does selectedLine() use hard cr's instead of the displayed line in the field? I had been assuming the latter due to the lack of mention of cr in the dictionary page, as it gets mentioned in others where it is used. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode