Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code works in object on form but not as class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00158755
Message ID:
00160517
Views:
16
Hi Jayesh,

Actually it is a true combobox class. If I look at its BaseClass it says Combobox. The myform.mycombo.text1. reference occured when coded directly into a combobox and when saved in a combobox class. I think VFP is doing a little slight-of-hand behind the scenes for the combobox's functionality and that's where the text1 object is coming from. Thanks for the reply though.

>Hi there,
>
>I think you have dropped combo on a Container Class because as you said above
>it goes to myform.mycombo..text1.Destroy(). Since Combo is not a container object, there should not be any .text1 reference.
>
>If you want to create a pure combo box class, recreate it and base it on ComboBox not on any Container Class.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Reply
Map
View

Click here to load this message in the networking platform