put parens around (the selectedobjects) so that eval is forced to complete
before the count.


On Thu, May 30, 2013 at 10:20 AM, Peter Haworth <p...@lcsql.com> 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 <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
>
_______________________________________________
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