How to tell a line from a paragraph?

Dan Shafer revdan at danshafer.com
Thu Nov 3 02:52:11 EST 2005


Geoff....

Way cool! I hadn't even looked at formattedText from that viewpoint.  
So the original poster's problem could be solved something like:

on mouseUp
   put the formattedText of field "foo" into field "holder"
   find "aid" in field "holder"
   put the foundLIne
end mouseUp



On Nov 2, 2005, at 10:33 PM, Geoff Canyon wrote:

> Check out the formattedText property. It gives you back the text of  
> a field with returns inserted where the text is wrapped in the field.
>
> On Nov 2, 2005, at 3:42 PM, Michael wrote:
>
>> Is it possible to determine on which "line" a word resides in a  
>> text field,
>> where a line is defined not as a cr-delimited paragraph but as a  
>> "row" in
>> the field's display?
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
 From http://www.shafermediastore.com/tech_main.html





More information about the use-livecode mailing list