How can a button not have properties?

Ali Lloyd ali.lloyd at livecode.com
Fri Oct 23 17:15:32 EDT 2015


Indeed, or you can force evaluation to an array using brackets.

put the keys of (the properties of btn "File" of grp "mcp_menu" of  cd 1 of
stack "old_cp")

On Fri, Oct 23, 2015 at 10:09 PM Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Hi,
>
> Actually, a property isn't an array. You have to put the properties
> property into a variable to make it an array.
>
> Mark Schonewille
> http://economy-x-talk.com
>
> Buy the most extensive book on the
> LiveCode language:
> http://livecodebeginner.economy-x-talk.com
>
> Op 10/23/2015 om 23:07 schreef Dr. Hawkins:
> > On Fri, Oct 23, 2015 at 1:53 PM, Peter Haworth <pete at lcsql.com> wrote:
> >
> >> The properties property is an array so a simple put will not display
> >> anything.
> >>
> > Yes, but
> >
> > put the keys of the properties  of btn "File" of grp "mcp_menu" of  cd 1
> of
> > stack "old_cp"
> >
> >
> >
> > also comes up empty.
> >
> > I found this when setting the properties of one button to that of
> another;
> > a line of code that got used for a year or so on every single version
> > change.  It bombs out of the script with only an error in the message
> box.
> >
> >
> >
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list