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.
d...@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to