Hi Peter,

Sorry for the confusion. There are a few forms that you can't use, but 
apparently there are also several ways that you can't use. I was wrong saying 
that you can _only_ use long id's. The forms that I can't get to work are:

button "Text"
button 2 of cd 1
button "Some Button" of cd id 1002

but it seems that as long as you include a reference to the stack, it will work 
fine. If you set a reference by script and it doesn't work, you get an 
execution error, but if you try this in the property inspector, you don't see 
any warning at all and might be left thinking that the property inspector 
doesn't work correctly or that you selected the wrong control before setting 
the property, while in reality you had the reference wrong.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
spaces. http://www.color-converter.com

We have time for new software development projects. Contact me for a quote.




On 5 nov 2012, at 21:45, Peter Haworth wrote:

> Hi Mark,
> Is this really true (the part about long IDs not the part of buttons only)?
> 
> I have been using behaviors in the general form  - button ID 1234 of stack
> "xyz" - for quite a long time now and they seem to work fine.  Am I setting
> myself up for trouble down the line?
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> 


_______________________________________________
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