MyObj is a .NET managed object declared in C# in the following way:
class MyObj
{
MyObj() {}
private int m_prop1;
public int Prop1
{
get { return m_prop1; }
set { m_prop1 = value; }
}
}
It is added into Microsoft's Script Control and used through
PerlScript.
I need to add that accessing Prop1 works fine with VBScript & JScript.
Any idea ?
Thanks,
Tim Hammerquist wrote:
> Smugsboy <> wrote:
> > When I try to read the propery I succeed using the following
syntax:
> > $MyObj->Prop1
> >
> > However, whem I try to write to the propery using the following
> > syntax I get an error:
> > $MyObj->Prop1 = 6;
> >
> > Any ideas ?
>
> You'll need to provide more information about $MyObj in order to get
> a definitive answer. Also, hopefully someone more familiar with
> WSH/PerlScript programming than me is lurking around here. I used
> ASP/PerlScript about 5 years ago, but I haven't kept up.
>
> PerlScript lacks a lot of the syntactic sugar that makes VBScript
look
> so simple. E.g., "default objects." You'll probably need to take
> a deeper look into the $MyObj object and see what, if anything, is
going
> on behind the scenes.
>
> HTH,
> Tim Hammerquist
|