Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The scope of WITH
Message
De
29/02/2004 14:16:30
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00881595
Message ID:
00881892
Vues:
17
>Mark,
>
>FWIW, I wouldn't write a function that actually required a WITH to be in effect for the code to work.

I'm still amazed that it works - and I'd agree it would be very unhealthy to use. Such a function would break as soon as it's called outside of a with/endwith block. It's so much easier to pass an object and have it work on the passed object, even if it had to issue its own with/endwith on it. And it's also cleaner and easier to follow (though it's equally hard to document - the procedure knows nothing about the passed object at design time).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform