Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The scope of WITH
Message
From
29/02/2004 14:16:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00881595
Message ID:
00881892
Views:
16
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform