Setting label based on Text field from other view?

I am just starting out and would like to reference the text input from another view. For example, the user enters a text value and clicks the button. I want the label in the view that comes up to have the name the user entered. I thought it would be as simple as having on “open” on the label and saying:

newlabelname.text = lastviewname.lastviewlabel.text

It is, but you’d have to correctly access the view. Also, if you’ve closed the previous view, the item you’re trying to access may have been destroyed.

Are you talking about a Window, Container Control, or are you on iOS using Views?
Have you seen the User Guide?