I have created an ActiveX control which has an Enumerated list of allowable values for one of its proerties. I would like to use those enuberated values in a case statement of the container's code. Is it possible to access those values?
The control contains this:
'Enumerate allowable content types for Listbox
Public Enum AllowableContents
rlbFiles = 1
rlbSingleLineText = 2
rlbFilesOrSingleLineText = 3
rlbMultiLineText = 4
rlbFilesOrMultiLineText = 5
End Enum
In my program, I would like to do this:
Function AllowTypeText(i As Integer) As String
Select Case i
Case rlbFiles
AllowTypeText = "Files"
Case rlbSingleLineText
AllowTypeText = "SingleLineText"
Case Else
AllowTypeText = "???"
End Select
End Function
Of course, the values such as "rlbFiles" are undeclared in the code of the container program. How can I declare them?
Any help or advice will be appreciated.
Phil
The control contains this:
'Enumerate allowable content types for Listbox
Public Enum AllowableContents
rlbFiles = 1
rlbSingleLineText = 2
rlbFilesOrSingleLineText = 3
rlbMultiLineText = 4
rlbFilesOrMultiLineText = 5
End Enum
In my program, I would like to do this:
Function AllowTypeText(i As Integer) As String
Select Case i
Case rlbFiles
AllowTypeText = "Files"
Case rlbSingleLineText
AllowTypeText = "SingleLineText"
Case Else
AllowTypeText = "???"
End Select
End Function
Of course, the values such as "rlbFiles" are undeclared in the code of the container program. How can I declare them?
Any help or advice will be appreciated.
Phil