Is it possible to load a function for a stack from another s

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
jesse
Posts: 205
Joined: Thu Nov 11, 2010 6:32 pm

Is it possible to load a function for a stack from another s

Post by jesse »

Is it possible to load a function from one stack but into another stack?

I have a stack that will update a database record. Once I click the Save Changes button I want
to refresh the datagrid from the parent stack so the changes show up. How would I do this?
The function I need to run is resetGrid. I thought maybe something like this but it didn't
work.

Code: Select all

resetGrid of stack "Main Stack"
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Is it possible to load a function for a stack from another s

Post by dglass »

Probably need 'send'.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: Is it possible to load a function for a stack from another s

Post by dunbarx »

Hi.

Read up on the "request" command. It should do the trick.

Craig Newman
BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Is it possible to load a function for a stack from another s

Post by BvG »

you probably want either send, do, dispatch or get.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
jesse
Posts: 205
Joined: Thu Nov 11, 2010 6:32 pm

Re: Is it possible to load a function for a stack from another s

Post by jesse »

BvG,

Thanks I was able to use send. ill have to check the others to understand the difference between the two.
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
Post Reply