Hi all,
I have the following sub in one of my classes that requires an optional
parameter in the form of an ole integer color. The build error I get is
'Constant expression required', so basically (I think) I need to get a
Constant value from the Color structure.
Public Class myClass
Public Sub mySub(byRef myParam as String, Optional ByRef lColor as
Integer = ColorTranslator.ToOle(SystemColors.Control))
'My code here
End Sub
End Class
Anyone able to give a few hints?
Thanks in advance.
Nick