Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 Objects with the same name
Message
 
À
19/04/1999 17:14:29
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00209904
Message ID:
00209925
Vues:
15
Nancy,

I would say that you should get an error when the second object in a container with the same name is instantiated. It would also be nice to get the error when you try to open the .scx at design time, or maybe when you try to save it. However, it should still open the .scx rather than making you open it as a table to track down the error.

By the way, it's the button on the .scx, not in the parent class, whose click event executes when you call thisform.cmdok.click(). At least in my test, it is.


>It's standard in OOP, I think, that if you change a parent class, children aren't all checked for conflicts like this. Same thing, if you delete a class method and you have a child with code in that method, you're S.O.L.
>
>The other way isn't great either, because that would mean that VFP would have to give us an error on opening the SCX. That might be somewhat feasible.
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform