Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 Objects With the Same Name
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00259338
Message ID:
00259347
Views:
14
The code in the second instance is fired in both objects. A Curious anomaly indeed.

>1. Create a form class called 'Base'.
>2. Create a subclass of 'Base', call it 'Subclass'
>3. Add a command button to 'Subclass' called 'command1'
>4. Close 'Subclass', open 'Base' and add a command button called 'command1'
>5. Close 'Base', open 'Subclass', and you have a form
>with 2 command buttons, both called 'command1'
>
>So which button is called with "ThisForm.Command1.Click()"?
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform