Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables Set to Null
Message
From
20/04/2005 06:59:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01006473
Message ID:
01006475
Views:
18
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform