Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 Objects With the Same Name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00259338
Message ID:
00259347
Vues:
15
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

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform