>
>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).