'send' and behaviors

Peter Haworth pete at lcsql.com
Sun Jun 3 12:02:16 CDT 2012


I think a point that's being missed here is Graham's quote from the
dictionary in his original post:

"Therefore references within the message that refer to "this card" or "this
stack" will be referring to the card or stack where the target handler is
located."

Clearly, that's not the case in this particular circumstance so Graham
based his code on faulty information.  We should be able to rely on the
accuracy of the LC docs and report any inaccuracies as bugs..

Pete
lcSQL Software <http://www.lcsql.com>



On Sun, Jun 3, 2012 at 8:33 AM, Dar Scott <dsc at swcp.com> wrote:

>
> On Jun 3, 2012, at 2:11 AM, Graham Samuel wrote:
> > and a lot more complex stuff involving lists of object name
>
> I don't know if this applies, but it might.
>
> The long id of an object can be used where an object reference is
> expected.  It can be a way to reference the object in any context.  You can
> pass the value to functions.
>
> Example:
>
> on mouseUp
>        put the long id of field "Field" into f
>        doSomething f
> end mouseUp
>
> command doSomething lid
>        set the text of f to "Start"
>        set the startTime of f to the long seconds
>        move f relative 10,0
> end doSomething
>
> As you can see, you have to 'set the text' rather than use 'put' to change
> the value in a field.
>
> Dar
>
>
> ---------------------------
> Dar Scott
> dba
> Dar Scott Consulting
> 8637 Horacio Place NE
> Albuquerque, NM 87111
>
> Lab, home, office phone: +1 505 299 9497
> For Skype and fax, please contact.
> dsc at swcp.com
>
> Computer programming and tinkering,
> usually in supporting those developing in
> LiveCode--typically by making LiveCode
> controls, libraries and externals, and
> sometimes by writing associated
> microcontroller firmware.
> ---------------------------
>
>
>
>
>
> _______________________________________________
> 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