Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One class, two behaviors
Message
From
08/09/1998 18:55:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
One class, two behaviors
Miscellaneous
Thread ID:
00134266
Message ID:
00134266
Views:
67
I have a combobox that is in a container object. The cbo's rowsourcetype is array and it's rowsource is a property of the container. When I drop the container on an .scx form, it works fine. When I drop it on a .vcx form and instantiate it, the drop down only displays the first item in the list, even though Container.alistsource[] has been populated. I make no changes to the container object in either the form or the form class.

When the container is instantiated in the form , the Watch window of the debugger displays Container.alistsource array with a plus sign next to it and it can be expanded to view the contents of the array. When the container is instantiated in the form class, the Watch window of the debugger defines Container.alistsource as an array, but there is no plus sign and it cannot be expanded. Although I can put the the array variable in the Watch window with subscripts and access the various values.

Any ideas as to why this behavior might be different in the two instances? It must be environmental in some way, but I've run out of ideas for places to look.

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform