Send variable from one card to another card?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Send variable from one card to another card?
he meant you can't go to the same stack that you're currently showing, making it show paralell in a second window. it's one stack per window. however, you can easily make a second stack, and then use that as your edit mask, no?
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Re: Send variable from one card to another card?
BvG,
How would I send the variable CurrentID from the one stack where my datagrid is to a new stack for the "Edit Window"?
??
How would I send the variable CurrentID from the one stack where my datagrid is to a new stack for the "Edit Window"?
Code: Select all
go to stack "Edit Card" CurrentID
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
Re: Send variable from one card to another card?
Nevermind I think I got it. TO simple I just created a sub stack and then call the global variable into a field like this.
I actually changed to theDataA as the variable which is the array of columns for from the row selected in the datagrid.
Then it simply preloads the Name of the product into a field productName.
I assume this is the correct method.
I actually changed to theDataA as the variable which is the array of columns for from the row selected in the datagrid.
Then it simply preloads the Name of the product into a field productName.
Code: Select all
on preOpenStack
global theDataA
answer theDataA["ID"]
put theDataA["Name"] into the field "productName"
end preOpenStack
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392
Re: Send variable from one card to another card?
Hi Jesse,
yes, this is the correct way to go!
A "global" variable is "visible" in ALL cards of all stacks and substacks
that you open in your current LiveCode session!
Best
Klaus
yes, this is the correct way to go!
A "global" variable is "visible" in ALL cards of all stacks and substacks
that you open in your current LiveCode session!
Best
Klaus
Re: Send variable from one card to another card?
Thanks Klaus!
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392