Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Method code at Instance Level
Message
De
30/03/1998 08:31:52
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
30/03/1998 08:09:45
Steve Camsell
Windmill Associates
Bath, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00088041
Message ID:
00088061
Vues:
28
>Sorry Matt,
>
>I probably wasn't clear enough in my original message. The custom class has been defined programatically with a DEFINE CLASS statement that has beeen added to the project via a SET PROCEDURE TO where is the name of the .prg file that contains the class definition code.
>
>>I don't understand why you don't add the class visually. Just because the custom class doesn't have a user interface, doesn't mean you can't add it visually.

No apology necessary, I didn't read the original post correctly.

Well, the only way around this I see is to define subclasses and have those added to your form at run-time.

BTW, IMO, this is a terrible implementation of OOP development. But, if you're restricted by your environment, I understand. Been there, done that. Anyway, again IMHO, probably the best way to do this is to have a 'custom subclass' prg that gets called from the load event from the forms that need to use the classes in your SET PROC statement. From there you can programmatically sub class the objects you need and then add them in the init of the form.

HTH
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform