ironfelix717
Registered User.
- Local time
- Today, 03:33
- Joined
- Sep 20, 2019
- Messages
- 193
Unless I've lost my mind, the following property declarations are 100% VALID and the compiler is whining about the property declaration being inconsistent, duplicate, etc...
Can someone put a set of eyes on this?
- The property is not duplicate, or has any variable of the same name
- The LET and GET statement are correctly formatted
- The prop variable is valid and exists
- The declaration is of the same type for both LET and GET.
Can someone put a set of eyes on this?
Code:
Property Let ParentTable(value As String)
'MANUALLY SET THE PARENT TABLE
'CLEAR PROPERTY BY SETTING IT = ""
vParentTable = value
End Property
Property Get ParentTable(Item As ItemTypes) As String
'RETRIEVES THE NAME OF THE PARENT TABLE FOR OPERATIONS, MATERIALS, OR TOOLING
If vParentTable <> "" Then ParentTable = vParentTable: Exit Property
If vType = 1 Then
Select Case Item
Case Operations: ParentTable = "LOC_Operations"
Case materials: ParentTable = "LOC_OperationsMaterials"
Case Tooling: ParentTable = "LOC_OperationsTooling"
End Select
Else
Select Case Item
Case Operations: ParentTable = "USR_Operations"
Case materials: ParentTable = "USR_OperationsMaterials"
Case Tooling: ParentTable = "USR_OperationsTooling"
End Select
End If
End Property