Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding LINKED...
Message
From
12/03/1998 15:58:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/03/1998 17:43:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00083669
Message ID:
00084283
Views:
32
>
>I take it what's really happening is that in the first case, the variable loForm holds the memory for the object itself, while in the second case, loForm only holds a reference to the Form object.
>
>This is something on the order of passing by reference vs. by value. when discussing functions.
>
>What I can't figure out is why you would want to ever have a Form (or any other kind) object that you can eventually lose control over. Granted, Forms *usually* are controlled by the user, but I certainly wouldn't want to bet on it.

One possible use occurs to me - say you link all your forms to elements of an array, and in the shutdown procedure you just release the array. Theoretically this could be an elegant way of releasing all active forms; practically, there are surely some reasons why this wouldn't be a bulletproof way to release forms (cross-referrences, uncommited transactions, dirty buffers etc).

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