Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie from Fox, equivalent to the VFP THIS?
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00762071
Message ID:
00762115
Views:
14
>Is there an equivalent to the VFP this? In VFP this is the object reference to the current object. For instance:
>
>this.left=100
>this.top=100
>
>
>Thanks
>
>Glenn


For forms, it's Me. But note that sometimes it's also implied even without a "Me." For instance, Left will imply me.left if there' snot some other variable named "Left" in scope.

Weird, isn't it? Just another one of the ways that VB tries to help, and seems to encourage bad coding habits (see also: default properties)

For non-form objects, you need to refer to the control name.
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform