How to refer to a class property while in that class.
- From: "Dan" <danncasey@xxxxxxxxx>
- Date: 1 May 2006 22:02:18 -0700
I have some variables/properties that are set up using Let and Get.
From out side of the class I can update them like this:
Set test = new testClass
test.myproperty = "test1"
But from withen the class I don't know how I would update that property
(assuming i didn't know the class instance was called "test").
In php i could do it like so
this->myproperty = "test1"
Actually that might not be real php syntax, I often mix all my
languages together by accident. But none-the-less, you get the point.
I don't know that im working in a class called test, but I can refer to
it as "this" instead. How can I do this in ASP/VBScript ?
.
- Follow-Ups:
- Contrary to popular opinion, "Me" is legit
- From: mr_unreliable
- Re: How to refer to a class property while in that class. (Solved)
- From: Dan
- Contrary to popular opinion, "Me" is legit
- Prev by Date: Re: Finding remote computers
- Next by Date: Help on deletion of Registrykey with subkeys under it using vbscript
- Previous by thread: Enumerate (count) number of times phrase used in txt document
- Next by thread: Re: How to refer to a class property while in that class. (Solved)
- Index(es):