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
Hi Richard,
The selectedLine counts the number of hard returns. Just try it.
--
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,
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
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)
On Sep 18, 2013, at 9:22 AM, Dr. Hawkins wrote:
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
On Wed, Sep 18, 2013 at 8:34 AM, Peter M. Brigham pmb...@gmail.com wrote:
Not sure what you mean, how the field is actually formatted. If you are
talking about possibly having empty lines following the last text in the
field, then
the number of lines of (word 1 to -1 of fld myField)
would
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 doch...@gmail.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Wed, Sep 18, 2013 11:23 am
Hi Richard,
There are probably many ways to do this, Here's one:
put number of lines of the formattedText of \
char 1 to (word 2 of the selectedChunk) of me
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
On Wed, Sep 18, 2013 at 9:02 AM, Mark Schonewille
m.schonewi...@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