Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Rid of Public Variables
Message
 
To
17/11/2001 16:08:38
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00582351
Message ID:
00583163
Views:
16
>Hi Jim,
> Is the re-assignment of loParms necessary in the statement:
>loParms = Broker.GetTotal(loParms)
>
>Thanks.
>Kam.
Kam,

The reason for assignment is that the broker object's method is returning an object with a RETURN SomeObject command. That object may or may not be the same one we passed in and our code should not "require" that the broker return our object to us. This way the broker and our object are as independent as they possibly can be. The broker may use the object we pass as its return object or it may clone the one we pass and put its return values into the clone. Our calling code is not dependant on which way the broker object acts.
Previous
Reply
Map
View

Click here to load this message in the networking platform