determining if cursor is in last line of a field
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Sep 19 04:08:46 EDT 2013
Hi Richard,
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
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 9/18/2013 22:00, Dr. Hawkins wrote:
> On Wed, Sep 18, 2013 at 9:02 AM, Mark Schonewille <
> m.schonewille at economy-x-talk.com> wrote:
>
>> put number of lines of the formattedText of \
>> char 1 to (word 2 of the selectedChunk) of me
>>
>
> Ah.
>
> Obvious now that you mention it :)
>
> Thank you.
>
> And to make me feel *really* sheepish: I was already using the height of
> the formattedText in the same routine . . .
>
> so
> the selectedLine is the number of lines of the formattedText of myTarget
>
> should do it.
>
>
>
More information about the use-livecode
mailing list