Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables Set to Null
Message
De
20/04/2005 06:59:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
20/04/2005 06:52:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01006473
Message ID:
01006475
Vues:
17
>Hello Everyone,
>
>The application I work with creates form objects and uses the Sys(2015) function to give them unique names. However what the application doesn't do it keep a note of the variable names of the objects, so when the form closes the variables are left visible and have a Null value.
>
>Are there any issue with memory in this scenario? Or are the variables not using any memory at all as they're null?

I am sure they use SOME memory, but probably not much. However, this will accumulate gradually, as you open and close more forms.

May I suggest the following alternative. Instead of using sys(2015) for form variables (how are you going to access them by that random names???), create an array of form objects. To create a new form, see if there is a null entry, before adding an element to the array.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform