The following code is in a form
Private strUN As String
Private Sub cmdOk_Click()
strUN = txtUserName.Text
Me.Hide
End Sub
Public Property Get UserName() As String
UserName = strUN
End Property
——————————–
From a module I declare
dim m_frmLogin as new frmLogin
Sub SomeSub()
m_frmLogin.show
end sub
Sub OtherSub()
debug.print frmLogin.UserName
‘displays nothing, empty string
end sub
——————
Can I conclude that The form is not truely hidden, but destroyed?
Thanks.