AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 1,835
- Office Version
- 2019
- 2016
- Platform
- Windows
Going slowly mad...
and the error I get is
Compile error:
Definitions of property procedures for the same property are
inconsistent, or property procedure has an optional parameter, a
ParamArray, or an invalid Set final parameter
Could someone please tell me what I'm doing wrong ?
Code:
Private pMDFHeader As String
'Assign a value ??
Public Property Let MDFHeader(Value As String)
pMDFHeader = Value
End Property
'Read the value ??
Public Property Get MDFHeader()
MDFHeader = pMDFHeader
End Property
and the error I get is
Compile error:
Definitions of property procedures for the same property are
inconsistent, or property procedure has an optional parameter, a
ParamArray, or an invalid Set final parameter
Could someone please tell me what I'm doing wrong ?