Message 1 of 5
String constants in Declaration section?

Not applicable
10-30-1999
08:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When trying to issue this command in the Declarations section of my
UserForm:
Public Const BLOCK_DIR="C:\Blocks"
I get this error:
Constants, fixed-length strings, arrays, and Declare statements not
allowed as Public members of an object module.
Why in the world can you not define a Public String Constant? and what is
the correct way to achieve this most logical approach I have tried.
UserForm:
Public Const BLOCK_DIR="C:\Blocks"
I get this error:
Constants, fixed-length strings, arrays, and Declare statements not
allowed as Public members of an object module.
Why in the world can you not define a Public String Constant? and what is
the correct way to achieve this most logical approach I have tried.