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:
00450012
Views:
28
>>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?
TIA
Shawn
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform