|
Even method, this is relatively simple and fast. This is how I transfer data between windows. Using global variables is more troublesome if you define more parameters, so you can get a clear correspondence!
''Input parameters
Private Sub MnuInput_Click()
With MSHFlexGrid1
''Product model and itinerary description
Form1.Text84.Text = .TextMatrix(1, 2)
Form1.Text81.Text = .TextMatrix(2, 2)
Form1.Text20.Text = .TextMatrix(3, 2)
Form1.Text82.Text = .TextMatrix(4, 2)
Form1.Text83.Text = .TextMatrix(5, 2)
'' input parameters
Form1.Text1.Text = .TextMatrix(8, 2)
Form1.Text2.Text = .TextMatrix(9, 2)
Form1.Text3.Text = .TextMatrix(10, 2)
Form1.Text4.Text = .TextMatrix(11, 2)
Form1.Text5.Text = .TextMatrix(12, 2)
Form1.Text6.Text = .TextMatrix(13, 2)
Form1.Text7.Text = .TextMatrix(14, 2)
Form1.Text8.Text = .TextMatrix(15, 2)
Form1.Text9.Text = .TextMatrix(16, 2)
'' Bucket input parameters
''Mechanical parameter input
End With |
|