Accessing properties in sub stack fields

Kay C Lan lan.kc.macmail at gmail.com
Wed Oct 8 22:40:01 EDT 2014


Try:

 put the noType of (the name of the focusedObject) && the focusedObject
into msg

The reference returned by fucusedObject is not in the format that is used
for the syntax of a custom property. You need to shorten it by referring to
just 'the name'.

HTH

On Thu, Oct 9, 2014 at 9:39 AM, John <john at onechip.com> wrote:

> Hi,
>
>    I was hoping that someone could explain what is going on.  I have a
> main stack with multiple sub stacks all of which use the main stack’s menu
> bar.  In the menubar group I have a mouseDown handler to update the menus
> before they are shown.  The sub stacks have fields which may, or may not,
> have a property “noType” with a value of “true”.
>
>    In the mouseDown handler in the menuBar group, the following does not
> work:
>
> put the noType of the focusedObject && the focusedObject into msg
>
> I can see that the focusedObject is correct even though the value of the
> property is not shown.  If I place this into the mouseDown handler I get
> the expected result:
>
> put line 1 of the openStacks into theTopStack
> put the selectedField into theSelectedField
> put word 2 of theSelectedField into theSelectedFieldNumber
> put the noType of field theSelectedFieldNumber of stack theTopStack into
> msg
>
>
>   Why does the first one line scrip not work and the longer four line
> script work?
>
> Thanks in advance,
> John
> _______________________________________________
> 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