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:
00450005
Views:
19
>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.
>
>Does anybody now if going to form arrays will solve this or is the best method to use a cursor.
>

You should avoid using public variables as much as possible in VFP. It's not a memory issue, but rather a design issue. It's better design to use form properties for things which need to be accessible throughout the form.

Arrays v. Cursors depends on how much data you're talking about.

>TIA
>Shawn
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform