Skip to first unread message

Daniel Van Zant

unread,
Feb 7, 2015, 2:36:08 PM2/7/15
to mitappinv...@googlegroups.com
I was wondering how to use Global Variables or something else to transfer information across multiple screens. For instance could I have a textbox on screen1 and then tie the textbox.text to a variable That I can then access from screen2 or screen 3?

SteveJG

unread,
Feb 7, 2015, 3:25:04 PM2/7/15
to mitappinv...@googlegroups.com
Global variables are NOT 'global.'   Variables only work on the screen they are defined on.    If you have lots of variables to pass, the best way is to use a TinyDB on each screen you require the variable.   Create a Tag for your variable.  The TinyDB on the other screens can use the same Tag.   When on the other screen on its Screen2.Initialize, retrieve the Tag and assign it to a variable on that screen.     Yes, you have to have a variable there and it can have the same name as the variable on your original screen.

Here is what the forum knows about passing variables or passing values   https://groups.google.com/forum/#!searchin/mitappinventortest/passing$20variables


Regards,
Steve
Reply all
Reply to author
Forward
0 new messages