1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Private mvardata1 As Integer 'local copy
Private mvardata2 As Double 'local copy
Private mvardata3 As String 'local copy
Private Sub Command1_Click()
Text1.Text = data1
Text2.Text = data2
Text3.Text = data3
End Sub
Public Property Let data3(ByVal vData As String)
'used when assigning an Object to the property, on the left side of a Set statement.
'Syntax: Set x.Data3 = Form1
mvardata3 = vData
End Property
Public Property Get data3() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Data3
data3 = mvardata3
End Property |
Partager