Obscure Object Referencing
tom at makeshyft.com
Thu Jun 7 16:57:44 EDT 2018
yeah it is Bob.....its one of the reasons why livecode is so flexible and
such a joy to work with.
On Thu, Jun 7, 2018 at 12:00 PM, Bob Sneidar via use-livecode <
use-livecode at lists.runrev.com> wrote:
> Yes indeed, it references the datagrid on the currentCard! If there is no
> such object on the current card, then even if there is one on another card
> that is not the currentCard, it throws an error, as you would expect!
> That is actually quite cool.
> Bob S
> > On Jun 7, 2018, at 08:54 , Bob Sneidar via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> > Hi all.
> > I just noticed by accident I can use something like this and it works:
> > dispatch populateRecord to group cDGName of stack cSubStack
> > cDGName is "dgDevices" and cSubstack is "Devices". Notice the absence of
> a card reference! Apparently, even though the owner of the datagrid group
> is the card it's on, this doesn't matter to the parser! I wonder what would
> happen if I had another card with a datagrid with the same name on it, if
> it would reference that datagrid if it was the currentCard of that stack,
> or if it would reference the first datagrid in the stack with that name? I
> think I'll give it a try!
> > Bob S
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode