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:
00762115
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform