determining if cursor is in last line of a field

dunbarx at aol.com dunbarx at aol.com
Wed Sep 18 12:07:09 EDT 2013


Try this:


answer the formattedText of fld "yourField"


It wraps unwrapped text with hard returns, and that will give the last line


Craig





-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Sep 18, 2013 11:23 am
Subject: determining if cursor is in last line of a field


If selectedLine() is 1, I am in the first line of a field.

I can't tell, though, what the last line is--"the number of lines" relies
on CR, not how the field is actually formatted.

I've looked for other "line" entries in the dictionary, but without any
luck.

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list