Note: You must be registered in order to post a reply.
T O P I C R E V I E W
Threshold
Posted - Apr 15 2005 : 6:30:01 PM I'm working on an ActiveX Document DLL (basically a library of classes) but I would like to give the end programmer access to some constants. As far as I know and have experienced classes cannot define public constants and public constants in modules are hidden from the end programmer. I did notice that the DirectX 8 library does, in fact, give me access to many constants. How can I achieve the same thing? Is there a better/equivalent alternative?
Posted - Apr 16 2005 : 3:26:54 PM You could use public properties to simulate constants. Simply make it "read only", as in only have "Get" statements and no "Let" statments. Public Property Get MyValue() As String: MyValue="hello world" :End Property