language syntax question

Scott Rossi scott at tactilemedia.com
Wed Nov 19 14:28:26 EST 2014


See if this works for you:


on mouseUp
    put something(long ID of field 1,2)
end mouseUp

function something obj, pl
    return the formattedRect of line pl of obj & cr & \
          word 1 of line pl of (text of obj)
end something



Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/19/14, 10:57 AM, "Mike Doub" <mikedoub at gmail.com> wrote:

>i have been struggling with a couple of language issues and I hope some
>one
>can set me straight.
>
>Issue 1).  What is the syntax to get the contents of a field when you have
>the long IDE to the field.
>
>Put something ( long ID of field "foo", 2) into x
>...
>
>Function something obj pl
>    Get the formattedrect of line pl of obj -- this works fine
>    Get word 1 of the text of line pl of obj -- this what I want to do but
>the syntax is wrong
>End something






More information about the use-livecode mailing list