Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New MS conspiracy
Message
From
03/05/2002 14:53:33
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00651992
Message ID:
00652569
Views:
23
>>
>>    Dim thisform As frmMyForm   'Name of the form
>>    Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
>>        thisform = Me
>>    End Sub
>>
>Shouldn't be
>
>Me = thisform
>
>?

Nope, in the code above, he's defining a property (well, in .NET speak, its a "field" but same thing) called "thisform". In order to access a property or field of the current object, you don't need to specify "this" or "Me".
string ClassProp
void ClassMethod() {
   ClassProp = "Notice I can set classprop without this or me"
}
So, if he sets the "thisform" property to reference "Me", thisform.ClassProp will effectively reference Me.ClassProp in your code. Make sense?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform