mayayana
Tue Aug 17 10:23:19 CDT 2004
It's Property Let. I think that's a common misunderstanding
because "Let" doesn't make much sense while "Set" does.
But Set is just for objects.
Dim sVal
Public Property Get ValueA()
ValueA = sVal
End Property
Public Property Let ValueA(InVal)
sVal = InVal
End Property
That's a simple example that just holds a value
in a variable inside the class. From outside
you'd call:
s = Class.ValueA '-- Get
Class.ValueA = s '-- Let
If the value is an object you can use:
Set Class.ObjectA = s '-- Let
Set s = Class.ObjectA '-- Get
Sample:
http://www.jsware.net/jsware/scripts.html#getlet
--
--
Kevin <zyke@mail.ru> wrote in message
news:O1zdedGhEHA.2916@TK2MSFTNGP12.phx.gbl...
> Hi!
>
> Please show me how to use Property Set members with classes on VbScript.
>
>
> Thanks..
>
>