Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I do this with WITH THISFORM...ENDWITH?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00456855
Message ID:
00456939
Vues:
29
>Not only will WITH/ENDWITH evalulate on both sides of the =, it will still evaluate in a method called from from within the WITH of another method. For example:
>
>WITH THISFORM
>   .MyExample()
>ENDWITH
>
>FUNCTION MyExample
>    .TextBox1.Value = "Something"
>ENDFUNC
>
Even if you do not call that function from withing a WITH/ENDWITH, you can use the .TextBox1.Value in any form method. There is an implicit ThisForm for any .Object that is outside a WITH/ENDWITH. I found that accidently and wondered why my code did not spawn an error.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform