Constant Arrays
- From: Robert Morley <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 11 Jan 2008 15:30:22 -0500
I have a need for something I'm about 99.999% certain VB6 doesn't support: constant arrays. Does anybody have any good workarounds for this?
Essentially what I want to do is:
Public Const LanguageNames(1 To 2) As String = ("English", "French")
The best I can come up with is either an auto-instantiating class, which seems kind of overkill, or simply declaring the array as a public variable and filling it at the beginning of my project. Unfortunately, being Access, this is not guaranteed, since the project can get reset by an error, for instance, without being fully restarted.
I'm thinking my best bet might be to declare it as a class member in my VB6 DLL, which is auto-instantiated from Access, but I'm hoping for something a little less kludgey. :)
Any thoughts?
Thanks,
Rob
.
- Follow-Ups:
- Re: Constant Arrays
- From: Ken Halter
- Re: Constant Arrays
- From: Karl E. Peterson
- Re: Constant Arrays
- Prev by Date: Re: Users can copy text shown on the popup/dialog
- Next by Date: Re: Vista and the tested but not shipped dll's and ocx files
- Previous by thread: Getting specifics of file names in VB
- Next by thread: Re: Constant Arrays
- Index(es):
Relevant Pages
|