>>I haven't played with creating classes by program code much. How would I add a class created with "define class xxx as custom" to a class library. I have created the class by code but I would like to add it to a class library.
>
>For any practical purpose, the .prg is your class library. You can pass the prg name as the classlib in any newobject() call.
>
>Now if you wanted to drop it onto your visual class... you can just do a this.newobject("oObj", "mycustom", "mycustom.prg") in the .load or .init of your visual class, and you're done. The visual representation of the custom class on a form or class in design mode isn't much anyway, and if you have more than 2-3 of these, you don't know which is which anyway until you check their properties. Which is why I didn't count this among the "practical purposes".
Thanks for the input from both you and Naomi. I will play around with both suggetions.
Gaylen
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement