Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't keep array in scope
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00590180
Message ID:
00590183
Views:
25
Chuck,

When you add the property to the form, name it like this:

myArray[1]

You can redimension it later (in the form init, for example), if necessary.

>I have been declaring arrays in the main.prg. I have since gone to an app object and do not want to add those as global varibles. More overhead.
>
>My question: I cannot get an array to stay in scope after creating it from SQL Select in the init of the form (which is to only place I use it) after the form instaniates. I need to populate a combobox. I tried to create a form property, but get an error "Invalid property". How do I create a form array property or keep the created array in scope after the form instaniates.
>
>Thanks, Chuck
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform