Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasession and Prg Files
Message
De
24/01/2003 03:45:56
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00744390
Message ID:
00744993
Vues:
14
>>WITH THISFORM && or WITH whatever.
>> DO Something
>>ENDWITH
>>
>>In this case, you can then also refer to methods and properties in the "WITH object" (polymorphism).
>
>With at least one exception: THISFORM.whatever
>You will get the error message "THISFORM can only be used within a form method" or something very close to that. It's happened to me a few times.

Well, yes.

The "WITH ... ENDWITH" implies that method and property references in the "DO Procedure" would be of the form .Method() or .Property and would only pertain to the "WITH object" ... the use of THISFORM. or THIS. in the called procedure does not follow.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform