Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to RELEASE ALL LIKE?
Message
De
11/04/2003 17:32:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00776765
Message ID:
00776804
Vues:
20
>So why are you using public variables at all? Variables declared private in the main program work just like publics, but they won't have the documented limitation.
>
>Hmmm... Well, that sorta worked. If I make them private, it doesn't work in test mode because they're not in scope from the command window. But if I make them public, I can't do the RELEASE ALL in the clean up code.

???? I sure can see private variables from the command window. What exactly do you mean by "test mode"?

>
>So what I did was test to see what mode I'm in and make them public if I'm in test mode. Which means the cleanup code is a pain to test now, but it's only a small section of the code, so that's ok.

If you've got an arrangement that works, I guess that's all that matters.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform