Mark Schonewille m.schonewille at
Thu May 30 12:27:07 EDT 2013

Hi Peter,

Apparently, the selectedObjects are parsed as objects rather than a 
string. The solution is to put parentheses around the selectedObjects. 
This parses it as a string.

Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces.

Buy my new book "Programming LiveCode for the Real Beginner"

On 5/30/2013 18:20, Peter Haworth wrote:
> I guess it's my week for running into LC oddities, here's the latest.
> Open any stack and select 1 or more controls on it.
> In the message box:
> put the selectedObjects
> You'll see the long ids of the controls you selected, one per line.  So far
> so good.  Now in the message box :
> put the number of lines in the selectedObjects
> You'll get zero no matter how many controls are selected.
> I can get round this in a script by putting the selectedObjects into a
> variable, then the number of lines in the variable returns the correct
> result.
> Is this a bug or just some strange side effect of how the selectedObjects
> is implemented?
> Pete
> lcSQL Software <>
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list