Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding LINKED...
Message
De
12/03/1998 15:58:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/03/1998 17:43:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00083669
Message ID:
00084283
Vues:
36
>
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform