Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use array in form ?
Message
From
08/05/1999 09:46:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/05/1999 04:10:26
Markus Henoch
PT. Arisamandiri Pratama
Semarang, Indonesia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00216351
Message ID:
00216369
Views:
25
>Hi All,
>
>I create arrays in a program that calls a form. But in Got Focus method, these arrays can't be recognized. Even if I declared them as PUBLIC arrays.
>
>Anybody can help me ?
>
Make your form modal, or create your arrays somewhere in the start of the app. This way the arrays probably exist when you instantiate the form, but in the meantime the calling routine exits and its variables are gone. If your form is modal, the calling routine will wait until the form exits, and the routine's variables will be visible.

You may try another approach - to store the arrays into cursors, and keep these cursors open while your form runs, and rebuild your arrays (but make them array properties of your form) in the form's .init; that would require a major rewrite of your form, at least the parts where you use these arrays.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform