Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Help with an abstract class question


Message #1 by "Shannon Stewart" <sstewart_59102@y...> on Thu, 31 Jan 2002 16:14:38
Just a quick question about interfaces.  Is it possible to define an enum
inside an interface?

An example

Option Explicit

Public Enum RptStatus
    Opened = 0
    Closed = 1
    PrintError = 2
End Enum

Public Sub PrintStatus(ByVal JobID as String, ByVal Status as RptStatus,
ByVal StatusMessage as String)

End Sub

If this is possible, a possible problem would be if we decided to add more
status's, we would have to break the interface (I don't know if we would
ever need to add more).  Is there a better solution to this?

Thanks,

sstewart

  Return to Index