Re: VBS Class error...
- From: "Michael Harris \(MVP\)" <mikhar.at.mvps.dot.org>
- Date: Sat, 13 Jan 2007 12:13:52 -0800
A. Nonymous wrote:
Could someone please tell me what is wrong with this code?
Class Test
Private Const BUFFER_SIZE = 100
End Class
TIA...
Unfortunately declaring class level constants in VBScript classes outside
sub/functions is not supported (aka a known bug that will never get fixed).
The best you can do is an ordinary private class level variable initialized
via Class_Initialize.
--
Michael Harris
Microsoft.MVP.Scripting
.
- Follow-Ups:
- Re: VBS Class error...
- From: Al Dunbar [MS-MVP]
- Re: VBS Class error...
- References:
- VBS Class error...
- From: A . Nonymous
- VBS Class error...
- Prev by Date: Re: CreateADUSer function
- Next by Date: Re: Replace several different strings of text at the same time
- Previous by thread: VBS Class error...
- Next by thread: Re: VBS Class error...
- Index(es):