'send' and behaviors

Dar Scott dsc at swcp.com
Sun Jun 3 11:33:59 EDT 2012


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.  
---------------------------








More information about the Use-livecode mailing list