To keep it as simple as possible, I have a desktop project with 2 windows:
The First (wContacts) is a "Document" type window. It displays information about vendors, customers etc. There is a textfield with the contacts email address. Next to it is a bevel button with an Action event that sets 3 public fields in the 2nd window with name, company, and email address:
wEmail.sEmailAddress = trim(tfEmail1.Text) wEmail.sCompany = tfCompany.Text wEmail.sName = trim(tfFirstName.Text) + " " + trim(tfLastName.Text) wEmail.ShowModal Return true
The 2nd window (wEmail) is a "Sheet" type window (I'm on a Mac) with the 3 public string fields declared as string. In the Open event of wEmail I assign 3 textfields to the values of the public string fields:
dim dDate As new Date GetSMTPServer GetUser LoadSignatureMenu dcDateSent.DateValue = dDate PopulateUI tfEmailAddress.Text = sEmailAddress tfName.Text = sName tfCompany.Text = sCompany Return
I placed a trace point at the 1st line of code in the action event of the bevel button and examined the textfields and they all contained the correct information.
BUT, when the wEmail window opens, the string fields are empty
I'm on a Mac Pro with macOS 10.11.1 and Xojo v2017r1.1
So, what am I missing - besides sitting here writing code at 7:00 on a Friday night....