Re: unable to make an global array inside a class
From: Geir Klemetsen (regeirgarbagespam_at_start.no)
Date: 10/24/04
- Previous message: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- In reply to: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- Next in thread: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- Reply: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 24 Oct 2004 23:47:43 +0200
"Michael Harris (MVP)" <mikhar at mvps dot org> skrev i melding
news:#QFIEGktEHA.904@TK2MSFTNGP11.phx.gbl...
> Geir Klemetsen wrote:
> > Hi. I just got an stupid problem:
> >
> > I want to have an class with an array which scope is global in that
> > class.
>
>
> Your problem does not repro on current (5.6) versions of VBScript.
>
> This was a known limitation in the intialize VBScripr version that
supported
> classes. The solution is to upgrade VBScript to current release levels
via
> an IE6 upgrade or a WSH 5.6 standalone install.
It's done.
Now I can define a global array inside a class.
But, still I can't create a global constant inside a class. Why ?
' This won't work (even with version 5.6)
' Test Code starts here
Class test
Private Const constantValue = "containing text" ' Suntax Error in this
line
End Class
' And stops here.
- Previous message: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- In reply to: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- Next in thread: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- Reply: Michael Harris \(MVP\): "Re: unable to make an global array inside a class"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|