Don't you mean:

put the dgdata of grp 1 of CARD 1 OF stack "path/to/dgstack.livecode" into 
tDataA

If you are going to be using full paths for this, I recommend using my fine 
functions getParentCard() and getParentStack(). 

function getParentCard pObjectID
   put offset("card id", pObjectID) into tStartChar
   put char tStartChar to -1 of pObjectID into tCardID
   return tCardID
end getParentCard

function getParentStack pObjectID
    put offset("stack ", pObjectID) into tStartChar
    put char tStartChar to -1 of pObjectID into tParentStack
    return tParentStack
end getParentStack

As you can see they are very basic. Pass a long id of the calling object and it 
returns the long card ID or the long name of the parent stack. Now you can do 
this:

put getParentCard(the long id of me) into tThisCard
put the dgData of grp 1 of tThisCard into tDataA

Bob S


> On Jan 11, 2018, at 09:28 , Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Have you tried something like this?  It works for me.  (though I just set
> the folder to the stacks location and use only the filename of the stack)
> put the dgdata of grp 1 of stack "path/to/dgstack.livecode" into tDataA


_______________________________________________
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