Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public Arrays Versus Form Arrays
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00449998
Message ID:
00450029
Views:
26
>>>Has anybody seen a difference in mem usuage between a public array versus a form array.
>>>
>>>The issue is that we have some arrays created in a form on NT WrkStn 4 and sometimes depending on the amount of applications the user has open arrays get destroyed...We get a FoxPro msg saying myarray.prg doesn't exist although myarray was declared public on the form.
>>>
>>
>>Using a member property avoids any possible side-effects normally found with a PUBLIC anything - the odds are that you're issuing a PRIVATE statement using a wildcard that hides the array, or are deallocating the array using RELEASE in an unexpected location. With member property arrays, the reference is scoped to the object (in your case, a Form) and won't suffer side-effects found with PUBLIC/PRIVATE memvars.
>
>Do this use any more memory in VFP or is it the same or is it less?]

Your problem has nothing to do with the amount of memory used by the array.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform