Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The scope of WITH
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
The scope of WITH
Divers
Thread ID:
00881595
Message ID:
00881595
Vues:
54
I didn't think this would work:
WITH oMyObj
  .SomeProperty=.T.
  SomeFunction()
  .AnotherProperty=.F.
ENDWITH
 * ...more code in this procedure

Function SomeFunction()
.YetAnotherProperty=.T.
Return
If .YetAnotherProperty is a property of oMyObj in the calling code, this will resolve OK in the function SomeFunction. But I thought that WITH / ENDWITH only scoped to the current procedure. What's up?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform