Remember values of instance variables

2
  • 27 favourites

Index

Stats

7,522 visits, 15,885 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

To see the active Layout on the “stage” insert the following:

This works now only for the first layout properly. For an easy switching between the two layouts and changing the value of “activeLayout”, I add another Button "Button2" in the second layout und delete the instance of the old button "Button" in the second layout:

Ok, let’s save now the text-values of the Text-instances. I create two global Variables “textValuesLayout1” and “textValuesLayout2” – both as type "Text".

How to remember the values at the “start of the layout”:

Voala. We've remembered the value of the instance-variable Text ;)

  • 3 Comments

  • Order by
Want to leave a comment? Login or Register an account!