G
Guest
I'm a newbie with Vb.NET so please excuse me if this is a stupid quetion.
I have declared a structure:
Structure ClientRecord
Public Client_ID As Integer
Public Client_Initials As String
Public Client_Surname As String
End Structure 'ClientRecord
I also have declared a property which is of this type of the structure:
Public Property Client() As ClientRecord
Get
Return FClient
End Get
Set(ByVal Value As ClientRecord)
FClient = Value
End Set
End Property
Now, in another form,i wish to set the values contained in the property
Client:
frmPolicy.Client.Client_ID = CInt(lblClientID.Text)
HOWEVER - I GET THE ERROR:
'Expression is a value and therefore cannot be the target of an assignment".
HOW SHOULD I DO THE ASSIGNMENT?
Any help would be most welcome!
Thanks
Suzie
I have declared a structure:
Structure ClientRecord
Public Client_ID As Integer
Public Client_Initials As String
Public Client_Surname As String
End Structure 'ClientRecord
I also have declared a property which is of this type of the structure:
Public Property Client() As ClientRecord
Get
Return FClient
End Get
Set(ByVal Value As ClientRecord)
FClient = Value
End Set
End Property
Now, in another form,i wish to set the values contained in the property
Client:
frmPolicy.Client.Client_ID = CInt(lblClientID.Text)
HOWEVER - I GET THE ERROR:
'Expression is a value and therefore cannot be the target of an assignment".
HOW SHOULD I DO THE ASSIGNMENT?
Any help would be most welcome!
Thanks
Suzie