Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01671871
Message ID:
01672013
Views:
66
> I do like the suggestion someone else had recently:
>
>
lo = some.long.object.reference
>lo.property = whatever
>lo.method()
>
>
>Making the shorter reference into a disposable variable is a nice trade off.

Yeah that's the approach that I usually take. Speaking of micro optimizations this is also slightly faster because variables require no lookups, while referenced multi-level variables do even if repeated in the calling context.

I literally NEVER use WITH if for no other reason that it adds an additional code nesting level.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform