Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem referencing array from the calling form
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00097156
Message ID:
00097216
Views:
16
Tom,

>In the same modal form pair I refered to in my prior posting, the called form has a combobox whose row source is an array from the calling form. That array is a property of the form. That array is:
>
>goapp.objects[5].achildren[1,3].aAvailableResources
>
>On occasion (but not now when I want to reproduce it) I get an error message telling me that an array element is out of range. I had wondered whether I should loop thru goapp.objects, but I want to avoid doing uneccessary processing. I looked in the documentation and the CodeBook book and found nothing. Do I need new glasses or advice (or both)?

This is a bit "untidy". Can you create the RowSource for the combobox in the form in which it is used?

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform