Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie from Fox, equivalent to the VFP THIS?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00762071
Message ID:
00762242
Vues:
9
Does this mean that to pass an object reference from within a control method I would pass the control name? Also how does VB handle containership?

Glenn

>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform