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: FourthWorld, heatherlaine, Klaus, 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 » Tue May 31, 2011 4:33 am

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 » Tue May 31, 2011 4:53 am

Probably need 'send'.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10319
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 » Tue May 31, 2011 6:28 am

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 » Tue May 31, 2011 12:25 pm

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 » Wed Jun 01, 2011 3:00 am

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