constants in code class

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

how do I get a constant to be available to all functions in a code class ?

tried :

Namespace Namespace
Public Class MyClass
const myconst as integer = 21
.....

but it wasn't available to use in function when called
 
With the code provided, you should be able to use myconst throughout the
class MyClass. If you want it to be accessible outside of MyClass, via
MyClass.myconst, you'll need to make it public (default is private).

Karl
 
Back
Top